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