diff options
Diffstat (limited to 'academic/R/R.SlackBuild')
-rw-r--r-- | academic/R/R.SlackBuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/academic/R/R.SlackBuild b/academic/R/R.SlackBuild index 69d417c0c6d80..4b39db3d80eef 100644 --- a/academic/R/R.SlackBuild +++ b/academic/R/R.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=R -VERSION=${VERSION:-4.1.2} +VERSION=${VERSION:-4.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -62,10 +62,18 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# Abort build if architecture is not 64-bit. -if [ "$ARCH" != "x86_64" ]; then - echo "$ARCH is not supported." - exit 1 +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 set -e |