Use shared libgcc if possible
authorEric Andersen <andersen@codepoet.org>
Sun, 18 Jul 2004 07:40:25 +0000 (07:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 18 Jul 2004 07:40:25 +0000 (07:40 -0000)
make/zlib.mk

index 90c6915aa1769882c135f7e609fdd4f58230d518..30e6a7c6f765a1faf16a011c44c00b4d3feeb4d9 100644 (file)
@@ -30,7 +30,7 @@ $(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.source
        touch $(ZLIB_DIR)/.configured;
 
 $(ZLIB_DIR)/libz.so.1.1.4: $(ZLIB_DIR)/.configured
-       $(MAKE) LDSHARED="$(TARGET_CROSS)ld -shared -soname,libz.so.1" \
+       $(MAKE) LDSHARED="$(TARGET_CROSS)gcc -shared -Wl,-soname,libz.so.1 -shared-libgcc" \
                CFLAGS="$(ZLIB_CFLAGS)" CC=$(TARGET_CC) -C $(ZLIB_DIR) all libz.a;
        touch -c $(ZLIB_DIR)/libz.so.1.1.4