summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconf10
1 files changed, 1 insertions, 9 deletions
diff --git a/Makeconf b/Makeconf
index 444484bd..a23910c5 100644
--- a/Makeconf
+++ b/Makeconf
@@ -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