- make it fully kernel dependant - linux/conpiler.h is still missing

This commit is contained in:
Thomas Woerner 2008-03-03 09:42:41 +00:00
parent 2d8b12dfae
commit d8ccf9fe1d

View File

@ -71,7 +71,7 @@ perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) nf_ext_init\(/g" extensio
%build %build
TOPDIR=`pwd` TOPDIR=`pwd`
OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC" OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC"
export KERNEL_DIR=/usr #export KERNEL_DIR=/usr
#export KBUILD_OUTPUT=/usr #export KBUILD_OUTPUT=/usr
export DO_SELINUX=1 export DO_SELINUX=1
make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} make COPT_FLAGS="$OPT" LIBDIR=/%{_lib}
@ -80,7 +80,7 @@ make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} ip6tables-save ip6tables-restore
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
export KERNEL_DIR=/usr #export KERNEL_DIR=/usr
#export KBUILD_OUTPUT=/usr #export KBUILD_OUTPUT=/usr
export DO_SELINUX=1 export DO_SELINUX=1
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir} make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir}