- make it fully kernel dependant - linux/conpiler.h is still missing
This commit is contained in:
parent
2d8b12dfae
commit
d8ccf9fe1d
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user