From 4e518e4d338bdc4b5c69da3263b99a15bbd6ef1d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 16 Aug 1994 02:26:01 +0000 Subject: Formerly Makeconf.~55~ --- Makeconf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Makeconf') diff --git a/Makeconf b/Makeconf index c510a10c..8ecd6d87 100644 --- a/Makeconf +++ b/Makeconf @@ -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 -- cgit v1.2.3