OSDN Git Service

Pass the -s to the linker
authorEric Andersen <andersen@codepoet.org>
Fri, 24 May 2002 04:35:54 +0000 (04:35 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 24 May 2002 04:35:54 +0000 (04:35 -0000)
ldso/util/Makefile

index aec74b5..2220b5f 100644 (file)
@@ -35,7 +35,7 @@ readelf: readelf.c
        strip -x -R .note -R .comment $@
 
 readelf.target: readelf.c
-       $(TARGET_CC) $(CFLAGS) --uclibc-use-build-dir -s readelf.c -o $@
+       $(TARGET_CC) $(CFLAGS) --uclibc-use-build-dir -Wl,-s readelf.c -o $@
        $(STRIPTOOL) -x -R .note -R .comment $@
 
 ifeq ($(strip $(LIBRARY_CACHE)),)
@@ -65,7 +65,7 @@ ldd: ldd.c
        strip -x -R .note -R .comment $@
 
 ldd.target: ldd.c
-       $(TARGET_CC) $(CFLAGS) --uclibc-use-build-dir -s -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
+       $(TARGET_CC) $(CFLAGS) --uclibc-use-build-dir -Wl,-s -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
                -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \
                -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
                -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \