summaryrefslogtreecommitdiffstats
path: root/source/d/cbindgen/cbindgen.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/cbindgen/cbindgen.SlackBuild')
-rwxr-xr-xsource/d/cbindgen/cbindgen.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/d/cbindgen/cbindgen.SlackBuild b/source/d/cbindgen/cbindgen.SlackBuild
index eafbb61a0..37d9a8528 100755
--- a/source/d/cbindgen/cbindgen.SlackBuild
+++ b/source/d/cbindgen/cbindgen.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=cbindgen
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -48,17 +48,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686"
+if [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"