mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
network/xtables-addons: More cleanups
This commit is contained in:
parent
34adb37b81
commit
55382320c4
1 changed files with 5 additions and 8 deletions
|
@ -32,10 +32,10 @@ KERNEL=${KERNEL:-$(uname -r)}
|
|||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
@ -47,15 +47,12 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SRCARCH=x86
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SRCARCH=x86
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
SRCARCH=x86
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
|
@ -85,8 +82,8 @@ CFLAGS="$SLKCFLAGS" \
|
|||
--with-kbuild=/lib/modules/${KERNEL}/build \
|
||||
--build=$ARCH-slackware-linux || true
|
||||
|
||||
make SRCARCH=$SRCARCH
|
||||
make install DESTDIR=$PKG SRCARCH=$SRCARCH
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Hrm, we don't want to install these
|
||||
rm -f $PKG/lib/modules/${KERNEL}/modules.*
|
||||
|
|
Loading…
Reference in a new issue