diff options
author | Roland McGrath <roland@gnu.org> | 1994-11-23 03:29:37 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-11-23 03:29:37 +0000 |
commit | 6f8241409a727b785a5fe253e5d3dd0438b54a0a (patch) | |
tree | 6acc2859980ef3ad032d0b392d0b489e88d841c0 | |
parent | 88f16d99771f89481fc17abaebb2a134d64aa777 (diff) |
($(target)): Use normal linking with -Wl,-( $+ -Wl,-).
-rw-r--r-- | Makeconf | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -159,15 +159,7 @@ HURDLIBS-files := $(foreach var,$(HURDLIBS),$($(var))) # Building the target ifeq ($(doinst),one) $(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) $(libc) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(target) $(link-objects) -# Don't use $^ to collect the args to the link because $^ omits duplicates. -#link-objects = $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) -# -lg avoids "No input files" error. -link-objects = -nostdlib -Wl,$(subst $(empty) ,$(comma),$(strip \ - $(startup) $(OBJS) -\( $(HURDLIBS-files) $(OTHERLIBS) -\))) \ - $(libc) $(ccdir)/libgcc.a -lg -empty = -comma = , + $(CC) $(CFLAGS) $(LDFLAGS) -o $(target) '-Wl,-(' $+ '-Wl,-)' endif |