patch-2.3.48 linux/arch/sparc/boot/Makefile

Next file: linux/arch/sparc/kernel/ioport.c
Previous file: linux/arch/ppc/xmon/xmon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/arch/sparc/boot/Makefile linux/arch/sparc/boot/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.9 1998/10/26 20:01:03 davem Exp $
+# $Id: Makefile,v 1.10 2000/02/23 08:17:46 jj Exp $
 # Makefile for the Sparc boot stuff.
 #
 # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -22,16 +22,20 @@
 clean:
 	rm -f btfixupprep piggyback tftpboot.img btfix.o btfix.s
 
-BTOBJS := $(HEAD) init/main.o init/version.o \
-	$(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
-	$(NETWORKS) $(DRIVERS)
+BTOBJS := $(HEAD) init/main.o init/version.o
+BTLIBS := $(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
+	$(DRIVERS) $(NETWORKS)
 
 # I wanted to make this depend upon BTOBJS so that a parallel
 # build would work, but this fails because $(HEAD) cannot work
 # properly as it will cause head.o to be built with the implicit
 # rules not the ones in kernel/Makefile.  Someone please fix. --DaveM
 vmlinux.o: dummy
-	$(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) $(LIBS) -o vmlinux.o
+	$(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) \
+		--start-group \
+		$(patsubst %,$(TOPDIR)/%,$(BTLIBS)) \
+		$(LIBS) \
+		--end-group -o vmlinux.o
 
 btfix.s: btfixupprep vmlinux.o
 	$(OBJDUMP) -x vmlinux.o | ./btfixupprep > btfix.s

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)