diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2023-05-18 00:03:15 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:06 +0700 |
commit | 306d8f85ebffa869e7a1641ab667bb788e9524d7 (patch) | |
tree | 01102f9cb53f56968501900b94775df727300ebc /libraries/libfabric/libfabric.SlackBuild | |
parent | a8886279949501165fe948ed5b756992b277795f (diff) |
libraries/libfabric: Updated for version 1.18.0.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libfabric/libfabric.SlackBuild')
-rw-r--r-- | libraries/libfabric/libfabric.SlackBuild | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/libraries/libfabric/libfabric.SlackBuild b/libraries/libfabric/libfabric.SlackBuild index 6de2abe1ef03..8a6e1ef7feaf 100644 --- a/libraries/libfabric/libfabric.SlackBuild +++ b/libraries/libfabric/libfabric.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libfabric -# Copyright 2022 Vijay Marcel +# Copyright 2022-2023 Vijay Marcel # All rights reserved. # @@ -26,18 +26,16 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libfabric -VERSION=${VERSION:-1.15.1} +VERSION=${VERSION:-1.18.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +sys_arch=${sys_arch:-$(uname -m)} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i586 ;; - arm*) export ARCH=arm ;; - *) export ARCH=$( uname -m ) ;; - esac -fi +case "$sys_arch" in + x86_64) export ARCH=x86_64 ;; + *) echo "This program will not build on $sys_arch platform" && exit 1 ;; +esac # If the variable PRINT_PACKAGE_NAME is set, then this script will report what # the name of the created package would be, and then exit. This information @@ -51,18 +49,11 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -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" +if [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-march=x86-64 -mtune=native -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + echo "This program will not build on $sys_arch platform" && exit 1 fi set -e @@ -94,7 +85,6 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --enable-shared \ --with-valgrind \ - --with-gnu-ld \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux |