[PATCH] Add -lmachuser -lhurduser to libc.so on GNU/Hurd.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 18 Jun 2025 04:49:31 +0000 (06:49 +0200)
committerAurelien Jarno <aurel32@debian.org>
Wed, 18 Jun 2025 04:49:31 +0000 (06:49 +0200)
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 ada616891ebe0b507d526d2dbf0949ec95b9e17a..e2ca9844305b735dfb80511152002bfb76702fcc 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1023,6 +1023,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