path: root/libc/
diff options
authorBernhard Reutner-Fischer <>2007-10-13 14:50:43 +0000
committerBernhard Reutner-Fischer <>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/')
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/ b/libc/
index a21859166..3ff5ab578 100644
--- a/libc/
+++ b/libc/
@@ -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)/
ifneq ($(VERSION_SCRIPT),)
-VERSION_SCRIPT := --version-script $(VERSION_SCRIPT)
+VERSION_SCRIPT := -Wl,--version-script,$(VERSION_SCRIPT)
endif := $(LDFLAGS) $(VERSION_SCRIPT) -init __uClibc_init := $(LDFLAGS) $(VERSION_SCRIPT) -Wl,-init,__uClibc_init := $(interp) $(ldso) $(top_builddir)lib/$(NONSHARED_LIBNAME)