add some symbols from libgcc.a into libcanfestival_win32.a to maintain compatibility between mingw and msvc compilers
authorgreg
Thu, 24 Sep 2009 09:29:07 +0200
changeset 593 44702aa24113
parent 592 b98df76c6fd5
child 594 17a171fe7c56
add some symbols from libgcc.a into libcanfestival_win32.a to maintain compatibility between mingw and msvc compilers
drivers/win32/Makefile.in
--- a/drivers/win32/Makefile.in	Wed Sep 16 15:19:58 2009 +0200
+++ b/drivers/win32/Makefile.in	Thu Sep 24 09:29:07 2009 +0200
@@ -66,6 +66,8 @@
 libcanfestival_$(TARGET).a: $(OBJS)
 	@echo Building [libcanfestival_$(TARGET).a]
 	$(BINUTILS_PREFIX)ar rc $@ $(OBJS)
+	$(BINUTILS_PREFIX)ar x `$(BINUTILS_PREFIX)gcc -print-libgcc-file-name` _umoddi3.o _udivdi3.o
+	$(BINUTILS_PREFIX)ar r $@ _umoddi3.o _udivdi3.o
 	$(BINUTILS_PREFIX)ranlib $@
 
 install: libcanfestival_$(TARGET).a