[PATCH,HURD] Fix link with gold
Samuel Thibault
samuel.thibault@ens-lyon.org
Tue Mar 29 22:06:00 GMT 2011
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
More information about the Libc-alpha
mailing list