From 0b3bac3e3223a7d4679eecdf98d7e5b4354b3b79 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 10 Apr 2014 17:46:14 +0700 Subject: [PATCH] python-pam: Add missing LIBDIRSUFFIX declaration. Signed-off-by: Willy Sudiarto Raharjo --- python-pam/python-pam.SlackBuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python-pam/python-pam.SlackBuild b/python-pam/python-pam.SlackBuild index d12e6e4..6d851f1 100644 --- a/python-pam/python-pam.SlackBuild +++ b/python-pam/python-pam.SlackBuild @@ -42,6 +42,20 @@ TMP=${TMP:-/tmp/csb} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + DOCS="PKG-INFO" set -e