Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.16 /Rules.make

Filename:/Rules.make
Lines Added:5
Lines Deleted:5
Also changed in: (Previous) 2.2.13pre2  2.1.14  2.0.0  1.3.10  1.3.9 
(Following) 2.3.99-pre3  2.3.99-pre4  2.4.18-pre3  2.4.18-pre4  2.4.18-pre5  2.4.18-pre6 

Location
[  2.3.16
   o  Rules.make

Patch

diff -u --recursive --new-file v2.3.15/linux/Rules.make linux/Rules.make
--- v2.3.15/linux/Rules.make   Mon Aug  2 17:09:47 1999
+++ linux/Rules.make   Thu Aug 26 09:41:36 1999
@@ -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 += $@' ; \


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.