changeset 1165:590740c9c5c6

Experimental change to link with static -lgcc... this elimates the need for the gccxxx.dll however...I tried -lc_s to get rid of libc063.dll but it was missing symbols.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 16 Sep 2011 11:20:14 +0000
parents cb1e6b29aa7d
children 568b37e4b167
files makefile.emx
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/makefile.emx	Fri Sep 16 10:53:10 2011 +0000
+++ b/makefile.emx	Fri Sep 16 11:20:14 2011 +0000
@@ -15,7 +15,7 @@
 LIBS =
 
 CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@)
-LDFLAGS = -Zdll -Zcrtdll
+LDFLAGS = -Zdll -static-libgcc
 RCFLAGS = -r
 
 
@@ -41,7 +41,7 @@
 	copy dwcompat.lib lib
 
 dwtest.exe: dwtest.o dw.lib dwcompat.lib
-	$(CC) $(CFLAGS) -Zcrtdll -Zomf -Zmt -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def
+	$(CC) $(CFLAGS) -Zomf -Zmt -static-libgcc -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def
 
 clean:
 	$(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll