aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Bratashov <dn2010@gmail.com>2013-06-25 18:41:11 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2013-06-25 18:41:11 -0300
commitc5e051dd7731911ea14af5535c54793f3fc4fab8 (patch)
tree98bb304b3581ce55e3be06647be556f65a7ac60d
parent4400a082c160003d04c0ae5eab69e315a0bf6036 (diff)
libraries/liboglappth: Fix for x86_64
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r--libraries/liboglappth/liboglappth.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/liboglappth/liboglappth.SlackBuild b/libraries/liboglappth/liboglappth.SlackBuild
index 8677d022cf8d..058a5c690c17 100644
--- a/libraries/liboglappth/liboglappth.SlackBuild
+++ b/libraries/liboglappth/liboglappth.SlackBuild
@@ -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} \