From 2bdae2a0463f480c5bd80d45cba8b3731f9fde19 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Aug 1998 17:25:45 +0000 Subject: [PATCH] (link-libc-static): New variable; set this here, overriding Makeconfig generic value so we link against the RPC libs. --- sysdeps/mach/hurd/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile index e108ed8db8..d51b46d13e 100644 --- a/sysdeps/mach/hurd/Makefile +++ b/sysdeps/mach/hurd/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1993, 94, 95, 96, 97, 98 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -124,6 +124,12 @@ ifeq (elf,$(subdir)) $(objpfx)librtld.so: $(rpcuserlibs:.so=_pic.a) endif +# We need these libs to link static programs in the libc source tree, too. +link-libc-static := -Wl,-\( \ + $(patsubst %,$(common-objpfx)%.a,\ + libc mach/libmachuser hurd/libhurduser) \ + $(gnulib) -Wl,-\) + ifeq ($(subdir),misc) sysdep_routines += cthreads endif