From 982c212b5ddf9abdce3ccd0a598ca27793ec6752 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 24 Jan 2004 21:55:57 +0000 Subject: [PATCH] fixed setting of -DMODULE for 2.6 --- m4/as-linux.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 6c6da5b0..670f1a4a 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -255,7 +255,7 @@ int code = LINUX_VERSION_CODE; ],[ return KERNEL_VERSION_MAJOR(LINUX_VERSION_CODE); ]), - LINUX_VERSION_MAJOR=0, + LINUX_VERSION_MAJOR=0, LINUX_VERSION_MAJOR=$?) AC_RUN_IFELSE(AC_LANG_PROGRAM([ #include "version.h" @@ -263,7 +263,7 @@ int code = LINUX_VERSION_CODE; ],[ return KERNEL_VERSION_MINOR(LINUX_VERSION_CODE); ]), - LINUX_VERSION_MINOR=0, + LINUX_VERSION_MINOR=0, LINUX_VERSION_MINOR=$?) AC_MSG_RESULT($LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR) dnl restore CFLAGS @@ -306,7 +306,7 @@ flags: echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>\$(obj)/flags echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>\$(obj)/flags echo LINUX_CFLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags - echo LINUX_FLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags + echo LINUX_CFLAGS_MODULE=\"\$(CFLAGS_MODULE)\" >>\$(obj)/flags echo LINUX_CC=\"\$(CC)\" >>\$(obj)/flags echo LINUX_LD=\"\$(LD) \$(LDFLAGS)\" >>\$(obj)/flags echo LINUX_AS=\"\$(AS)\" >>\$(obj)/flags @@ -319,6 +319,8 @@ EOF LINUX_MODULE_EXT=".ko" + LINUX_CFLAGS="$LINUX_CFLAGS $LINUX_CFLAGS_MODULE" + AC_SUBST(LINUX_ARCH) AC_SUBST(LINUX_AFLAGS) AC_SUBST(LINUX_LDFLAGS) -- 2.26.2