libraries/liboglappth: Fix for x86_64

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Daniil Bratashov 2013-06-25 18:41:11 -03:00 committed by Niels Horn
parent 4400a082c1
commit c5e051dd77

View file

@ -6,7 +6,7 @@
PRGNAM=liboglappth
VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -24,15 +24,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LDFLAGS=""
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LDFLAGS=""
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LDFLAGS="-L/usr/lib64"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LDFLAGS=""
LIBDIRSUFFIX=""
fi
@ -53,6 +57,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="$LDFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \