summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-13 14:50:43 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-13 14:50:43 +0000
commit51ce75b5b02a7617bfee5272d9236835be48d02d (patch)
tree45d559f5b9b02f0fa705797081a28f638f52463e /libc
parent3936de030a9c53a21825701cea9c4d36e0d00b85 (diff)
- use the compiler-driver instead of the linker
- adjust setting flags accordingly to use (hardcoded, see below) -Wl, Potential improvements: *) --warn-unresolved-symbols should perhaps be used for all libs *) eventually rename LDFLAGS to CC_LDFLAGS *) probe for compiler driver's notion of flag to use for passing in linker flags (i.e. don't hardcode "-Wl,")
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index a21859166..3ff5ab578 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -12,10 +12,10 @@ libc_OUT := $(top_builddir)libc
# libc, and if so, include it when linking.
VERSION_SCRIPT := $(wildcard $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map)
ifneq ($(VERSION_SCRIPT),)
-VERSION_SCRIPT := --version-script $(VERSION_SCRIPT)
+VERSION_SCRIPT := -Wl,--version-script,$(VERSION_SCRIPT)
endif
-LDFLAGS-libc.so := $(LDFLAGS) $(VERSION_SCRIPT) -init __uClibc_init
+LDFLAGS-libc.so := $(LDFLAGS) $(VERSION_SCRIPT) -Wl,-init,__uClibc_init
LIBS-libc.so := $(interp) $(ldso) $(top_builddir)lib/$(NONSHARED_LIBNAME)