Add -lmachuser -lhurduser to libc.so on GNU/Hurd.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +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 828a445f24d380c2c2c04ab608ed38c299a48250..4dbb3599b2ae36f9398468c32e635cfbb73f09d6 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1160,6 +1160,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