diff options
Diffstat (limited to 'Makeconf')
-rw-r--r-- | Makeconf | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |