Add -lmachuser -lhurduser to libc.so on GNU/Hurd.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 29 Oct 2018 20:36:01 +0000 (20:36 +0000)
committerSamuel Thibault <sthibault@debian.org>
Mon, 29 Oct 2018 20:36:01 +0000 (20:36 +0000)
http://lists.gnu.org/archive/html/bug-hurd/2011-03/msg00112.html

2011-03-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        * Makerules ($(inst_libdir)/libc.so): Add -lmachuser -lhurduser to
        libc.so on GNU/Hurd.

It's still unclear what we want to aim for.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-mach-hurd-link.diff

Makerules

index ef6abeac6d9dd0e9bb1aa68db7f1b64e64f9c9eb..69892d532015f915b67e3277e3986ba15f9487d4 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1170,6 +1170,9 @@ $(inst_libdir)/libc.so: $(common-objpfx)format.lds \
              '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
              ' AS_NEEDED (' $(rtlddir)/$(rtld-installed-name) ') )' \
        ) > $@.new
+ifeq ($(patsubst gnu%,,$(config-os)),)
+       echo 'INPUT ( AS_NEEDED ( -lmachuser -lhurduser ) )' >> $@.new
+endif
        mv -f $@.new $@
 
 endif