Commits

Anonymous committed 01104a2

MSys Makefile fix

Now adds the -static-libgcc flag. This removes libgcc as a dependency.

  • Participants
  • Parent commits 7a8e8b2

Comments (0)

Files changed (1)

File windows/msys/Makefile

 INCLUDES=$(ALL_I)
 
 CC=gcc
-CFLAGS=-g -O2 -I. -std=gnu99 -fvisibility=hidden -D_WIN32 -DBGDWIN32 $(DEFS) $(INCLUDES)
+CFLAGS=-g -O2 -I. -std=gnu99 -fvisibility=hidden -static-libgcc \
+	-D_WIN32 -DBGDWIN32 $(DEFS) $(INCLUDES)
 
 LD=gcc
 LDFLAGS=-g -O2 -fvisibility=hidden $(ALL_LIBDIR)
 all:
 	(cd ../../src; make -f ../windows/msys/Makefile $(TARGET))
 
+# BUG: this sucks in all the DLLs in the lib installation directory,
+# including those you may not need.
 dist: all
 	(cd ../..; $(ZIP) $(DIST) src/*.dll src/*.a $$(for d in $(ALL_DLLDIR); do echo $$d/*.dll; done | sort -u) )
 
+
 clean:
 	-rm ../../$(DIST)
 	(cd ../../src; rm -f *.dll *.a $(OBJ) deps.mk; true)