diff options
author | Roland McGrath <roland@gnu.org> | 1994-08-16 02:26:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-08-16 02:26:01 +0000 |
commit | 4e518e4d338bdc4b5c69da3263b99a15bbd6ef1d (patch) | |
tree | 5939f3206d3382f8076b715a82a39558ebfdba38 | |
parent | e22f9f0e62904b164829c0eb9f652ec38a6b688c (diff) |
Formerly Makeconf.~55~
-rw-r--r-- | Makeconf | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -156,11 +156,13 @@ HURDLIBS-files := $(foreach var,$(HURDLIBS),$($(var))) # Building the target # Yippee! A use for computed variable references! ifeq ($(doinst),one) -$(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(target) $(OBJS) \ - $(HURDLIBS-files) $(OTHERLIBS) -# -Wl,$(subst $(empty) ,$(comma),-\( $(OBJS) $(HURDLIBS-files) -\))\ -# -lg +$(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) $(libc) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(target) $(link-objects) +#link-objects = $(filter-out $(libc),$^) +# -lg avoids "No input files" error. +link-objects = -nostdlib -Wl,$(subst $(empty) ,$(comma),\ + $(startup) -\( $(filter-out $(libc),$^) -\) \ + -\( $(sort $(libc)) -lgcc -\)) -lg -v empty = comma = , endif |