aboutsummaryrefslogtreecommitdiff
path: root/libraries/liboglappth/liboglappth.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/liboglappth/liboglappth.SlackBuild')
-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} \