From b88d148bfeafd18fdf689533a08b8596c1995fa9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 2 Sep 1996 02:01:01 +0000 Subject: ($(target): %$(target-suffix)): Add dependency on $(BUGADDR), and $(BUGADDR_REF) to the flags. (BUGADDR, BUGADDR_REF): New variables. --- Makeconf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makeconf b/Makeconf index 36a29b97..b9e0b92e 100644 --- a/Makeconf +++ b/Makeconf @@ -67,7 +67,6 @@ top_srcdirinc=-I$(top_srcdir) endif CPPFLAGS += -I. $(srcdirinc) -I.. $(top_srcdirinc) -I$(top_srcdir)/include -D_GNU_SOURCE CFLAGS += -Wall -g -O3 - # Local programs: MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs @@ -120,8 +119,11 @@ ifeq ($(makemode),library) endif endif +# This is a hack to give all hurd utilities a default bug-reporting +# address (defined in libhurdbugaddr/bugaddr.c). +BUGADDR = $(..)libhurdbugaddr/libhurdbugaddr.a +BUGADDR_REF = -uargp_program_bug_address - # Standard targets .PHONY: all install libs relink clean @@ -212,8 +214,9 @@ _libsubst=${libsubst$(patsubst %,-override,${libsubst-override})} # dependencies of other shared objects it encounters. rpath := -Wl,-rpath-link=.:$(subst $. ,:,$(dir $(wildcard ../lib*/lib*.so))) -$(target): %$(target-suffix): - $(CC) $(rpath) $(CFLAGS) $($@-CFLAGS) $(LDFLAGS) $($@-LDFLAGS) -o $@ \ +$(target): %$(target-suffix): $(BUGADDR) + $(CC) $(rpath) $(CFLAGS) $($@-CFLAGS) $(LDFLAGS) $($@-LDFLAGS) $(BUGADDR_REF) \ + -o $@ \ '-Wl,-(' $(filter %.o,$^) \ $(foreach lib,$(filter-out %.o,$+),${_libsubst}) $($@-LDLIBS) $(LDLIBS) \ '-Wl,-)' -- cgit v1.2.3