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)
PERL = perl
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
-AFLAGS_MODULE =
+AFLAGS_MODULE = $(MODFLAGS)
CFLAGS_KERNEL =
AFLAGS_KERNEL =
EXPORT_FLAGS =
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