patch-2.3.16 linux/Rules.make
Next file: linux/arch/alpha/Makefile
Previous file: linux/Makefile
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Aug 26 09:41:36 1999
- Orig file:
v2.3.15/linux/Rules.make
- Orig date:
Mon Aug 2 17:09:47 1999
diff -u --recursive --new-file v2.3.15/linux/Rules.make linux/Rules.make
@@ -73,11 +73,11 @@
ALL_O = $(OX_OBJS) $(O_OBJS)
$(O_TARGET): $(ALL_O)
rm -f $@
-ifneq "$(strip $(ALL_O))" ""
- $(LD) $(EXTRA_LDFLAGS) -r -o $@ $(ALL_O)
-else
- $(AR) rcs $@
-endif
+ ifneq "$(strip $(ALL_O))" ""
+ $(LD) $(EXTRA_LDFLAGS) -r -o $@ $(filter $(ALL_O), $^)
+ else
+ $(AR) rcs $@ $(filter $(ALL_O), $^)
+ endif
@ ( \
echo 'ifeq ($(strip $(subst $(comma),:,$(EXTRA_LDFLAGS) $(ALL_O))),$$(strip $$(subst $$(comma),:,$$(EXTRA_LDFLAGS) $$(ALL_O))))' ; \
echo 'FILES_FLAGS_UP_TO_DATE += $@' ; \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)