summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-16 18:12:16 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-16 18:12:16 +0000
commit5334740f6224bae039996e78cae025bc18c488b3 (patch)
tree91bacca6c176f1ca441068d63ad64f883714e10c /Makeconf
parent3e8ba30c0942c3e7b28152df950d0a855090cf4c (diff)
Formerly Makeconf.~56~
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makeconf b/Makeconf
index 8ecd6d87..e7d0a023 100644
--- a/Makeconf
+++ b/Makeconf
@@ -158,11 +158,13 @@ HURDLIBS-files := $(foreach var,$(HURDLIBS),$($(var)))
ifeq ($(doinst),one)
$(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) $(libc)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(target) $(link-objects)
-#link-objects = $(filter-out $(libc),$^)
+# Don't use $^ to collect the args to the link because $^ gratuitously
+# omits duplicates.
+link-objects = $(OBJS) $(HURDLIBS-files) $(OTHERLIBS)
# -lg avoids "No input files" error.
-link-objects = -nostdlib -Wl,$(subst $(empty) ,$(comma),\
- $(startup) -\( $(filter-out $(libc),$^) -\) \
- -\( $(sort $(libc)) -lgcc -\)) -lg -v
+#link-objects = -nostdlib -Wl,$(subst $(empty) ,$(comma),\
+# $(startup) -\( $(OBJS) $(HURDLIBS-filess) $(OTHERLIBS) -\) \
+# -\( $(sort $(libc)) -lgcc -\)) -lg -v
empty =
comma = ,
endif