summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-02-09 15:29:49 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-02-09 15:29:49 +0000
commitf32fab77b89b81fd04cf5accd51d511b08d8980b (patch)
treeec70e75f7f218b32d2f207599914a789f38eebbd
parent7028a5d8b00f469940c3c18255e912c21bc5b822 (diff)
downloadOSELAS.Toolchain-f32fab77b89b81fd04cf5accd51d511b08d8980b.tar.gz
* rules/glibc.make:
fix bash static linking bug git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@9563 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r--rules/glibc.make10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/glibc.make b/rules/glibc.make
index cc8d6c5..f4d64df 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -147,6 +147,16 @@ $(STATEDIR)/glibc.install:
cd $(GLIBC_BUILDDIR) && \
$(GLIBC_PATH) $(MAKE) $(GLIBC_MAKEVARS) \
install_root=$(SYSROOT) install
+#
+# Fix a bug when linking statically
+# see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76451
+#
+ mv -- "$(SYSROOT)/usr/lib/libc.a" "$(SYSROOT)/usr/lib/libc_ns.a"
+ echo '/* GNU ld script' > "$(SYSROOT)/usr/lib/libc.a"
+ echo ' Use the static library, but some functions are in other strange' >> "$(SYSROOT)/usr/lib/libc.a"
+ echo ' libraries :-( So try them secondarily. */' >> "$(SYSROOT)/usr/lib/libc.a"
+ echo 'GROUP ( /usr/lib/libc_ns.a /usr/lib/libnss_files.a /usr/lib/libnss_dns.a /usr/lib/libresolv.a )' >> "$(SYSROOT)/usr/lib/libc.a"
+
@$(call touch)
# ----------------------------------------------------------------------------