This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH,HURD] Fix link with gold
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: roland at redhat dot com
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 30 Mar 2011 00:01:43 +0200
- Subject: [PATCH,HURD] Fix link with gold
With the gold linker, the libmachuser and libhurduser dependencies are
not brought implicitly by simply linking against libc. These have thus
to be explicited in the linker script (just like they are in libc.a
already).
2011-03-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
* Makerules ($(inst_libdir)/libc.so): Add -lmachuser -lhurduser to
libc.so on GNU/Hurd.
---
Makerules | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makerules b/Makerules
index 82ffa1e..8876342 100644
--- a/Makerules
+++ b/Makerules
@@ -991,6 +991,9 @@ $(inst_libdir)/libc.so: $(common-objpfx)format.lds \
'$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
' AS_NEEDED (' $(slibdir)/$(rtld-installed-name) ') )' \
) > $@.new
+ifeq ($(patsubst gnu%,,$(config-os)),)
+ echo 'INPUT ( AS_NEEDED ( -lmachuser -lhurduser ) )' >> $@.new
+endif
mv -f $@.new $@
endif