diff options
author | Miles Bader <miles@gnu.org> | 1996-09-02 02:01:01 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-02 02:01:01 +0000 |
commit | b88d148bfeafd18fdf689533a08b8596c1995fa9 (patch) | |
tree | 4045e0e36c55392c0cbc890db7289eaa4dad715d /Makeconf | |
parent | 52e9d601432464001a883c945ad03646ff066ec4 (diff) |
($(target): %$(target-suffix)):
Add dependency on $(BUGADDR), and $(BUGADDR_REF) to the flags.
(BUGADDR, BUGADDR_REF): New variables.
Diffstat (limited to 'Makeconf')
-rw-r--r-- | Makeconf | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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,-)' |