[patch] build network as .o not .a

From: Philip Blundell (Philip.Blundell@pobox.com)
Date: Sun Jun 11 2000 - 14:21:24 EST


At the moment it's not possible to build netfilter into a kernel with no
module support; there is nothing to pull ip_tables.o out of the archive.
Building the network code as an object file rather than an archive would avoid
this. This patch seems to do the job, any objections?

p.

--- Makefile 2000/05/27 00:49:33 1.311
+++ Makefile 2000/06/11 19:20:52
@@ -118,7 +118,7 @@ export SVGA_MODE = -DSVGA_MODE=NORMAL_VG
 #export RAMDISK = -DRAMDISK=512
 
 CORE_FILES =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
-NETWORKS =net/network.a
+NETWORKS =net/network.o
 DRIVERS =drivers/block/block.a \
                  drivers/char/char.o \
                  drivers/misc/misc.o \
--- net/Makefile 2000/05/15 11:46:30 1.28
+++ net/Makefile 2000/06/11 19:20:52
@@ -198,24 +198,20 @@ endif
 # We must attach netsyms.o to socket.o, as otherwise there is nothing
 # to pull the object file from the archive.
 
-SOCK := socket.o
 ifeq ($(CONFIG_NET),y)
 ifeq ($(CONFIG_MODULES),y)
-O_TARGET := sock_n_syms.o
-O_OBJS := socket.o
 OX_OBJS := netsyms.o
-SOCK := $(O_TARGET)
 endif
 endif
 
-L_TARGET := network.a
-L_OBJS := $(SOCK) protocols.o $(join $(SUB_DIRS), $(patsubst %,/%.o,$(notdir $(SUB_DIRS))))
+O_TARGET := network.o
+O_OBJS := socket.o protocols.o $(join $(SUB_DIRS), $(patsubst %,/%.o,$(notdir $(SUB_DIRS))))
 
 M_OBJS :=
 
 ifeq ($(CONFIG_SYSCTL),y)
 ifeq ($(CONFIG_NET),y)
-L_OBJS += sysctl_net.o
+O_OBJS += sysctl_net.o
 endif
 endif
 



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:23 EST