Install /lib/libgcc_s.so.1
authorEric Andersen <andersen@codepoet.org>
Tue, 20 Jul 2004 11:45:10 +0000 (11:45 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 20 Jul 2004 11:45:10 +0000 (11:45 -0000)
make/gcc-uclibc-3.3.mk

index 13b4bf0c9f4e67e179868cba4acd05a0ae932d89..ec0e927340951dfb0a1d00a1dcee5de39a300374 100644 (file)
@@ -173,12 +173,19 @@ ifeq ($(SOFT_FLOAT),true)
                echo staging dir specs file is missing ; \
                /bin/false ; \
        fi;
-       cp $(SOURCE_DIR)/specs-$(ARCH)-soft-float $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
+       cp $(SOURCE_DIR)/specs-$(ARCH)-soft-float \
+               $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
 endif
        touch $(GCC_BUILD_DIR2)/.installed
 
+$(TARGET_DIR)/lib/libgcc_s.so.1: $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s.so.1
+       # These are in /lib, so...
+       rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
+       $(STRIP) $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s.so.1
+       cp -a $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* $(TARGET_DIR)/lib/
+
 gcc3_3: uclibc-configured binutils gcc3_3_initial $(LIBFLOAT_TARGET) uclibc \
-       $(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
+       $(TARGET_DIR)/lib/libgcc_s.so.1 $(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
 
 gcc3_3-source: $(DL_DIR)/$(GCC_SOURCE)