[PATCH] Add -lmachuser -lhurduser to libc.so on GNU/Hurd.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 8 Oct 2022 15:53:16 +0000 (16:53 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 8 Oct 2022 15:53:16 +0000 (16:53 +0100)
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 a10a0b4d7021e8ecb517ab57bef5e630892fd814..9c419aed7d23cc162a8f959089c43841563a12b5 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1174,6 +1174,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