summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-08-16 02:26:01 +0000
committerRoland McGrath <roland@gnu.org>1994-08-16 02:26:01 +0000
commit4e518e4d338bdc4b5c69da3263b99a15bbd6ef1d (patch)
tree5939f3206d3382f8076b715a82a39558ebfdba38
parente22f9f0e62904b164829c0eb9f652ec38a6b688c (diff)
Formerly Makeconf.~55~
-rw-r--r--Makeconf12
1 files changed, 7 insertions, 5 deletions
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