]> git.hungrycats.org Git - linux/commitdiff
kbuild: -DMODULE for assembler source
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 14:25:04 +0000 (09:25 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 14:25:04 +0000 (09:25 -0500)
For consistency, it makes a lot of sense to add -DMODULE (plus
the other special switches with CONFIG_MODVERSIONS) to .S files
which get assembled. It surely fixes an ugly workaround for
sparc64, guess we'll see if it breaks something for other archs
(I wouldn't think so, though)

Makefile
arch/sparc64/solaris/Makefile

index ab84deab8e4ae2dfe215f84add34fb4635a3d09f..9d17d2bda54cb8d200120ed9d0bb2163a6ed8ae4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,7 @@ DEPMOD              = /sbin/depmod
 PERL           = perl
 MODFLAGS       = -DMODULE
 CFLAGS_MODULE   = $(MODFLAGS)
-AFLAGS_MODULE   =
+AFLAGS_MODULE   = $(MODFLAGS)
 CFLAGS_KERNEL  =
 AFLAGS_KERNEL  =
 EXPORT_FLAGS    =
index 14f421bf56c72272f3ce30a9811335ef48f1c4bc..b8521c91f8196b8039a7be0f6c246a362b7c1417 100644 (file)
@@ -4,10 +4,6 @@
 
 EXTRA_AFLAGS := -ansi
 
-ifeq ($(CONFIG_SOLARIS_EMUL),m)
-  EXTRA_AFLAGS += $(CFLAGS_MODULE) # FIXME
-endif
-
 solaris-objs := entry64.o fs.o misc.o signal.o systbl.o socket.o \
                ioctl.o ipc.o socksys.o timod.o