diff options
author | Eric Hameleers <alien@slackware.com> | 2018-04-03 20:30:13 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-04-03 20:30:13 +0000 |
commit | ece0580d2bc8924bd124e69e47c222a8367740e0 (patch) | |
tree | 0feb17d0ec3cdb9608103d76b09716d81fade742 /qbittorrent/build | |
parent | a02c47233f09dd2a262bdb577cf82d47c897cf8d (diff) | |
download | asb-ece0580d2bc8924bd124e69e47c222a8367740e0.tar.gz asb-ece0580d2bc8924bd124e69e47c222a8367740e0.tar.xz |
qbittorrent3: switch to i586
Diffstat (limited to 'qbittorrent/build')
-rwxr-xr-x | qbittorrent/build/qbittorrent3.SlackBuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/qbittorrent/build/qbittorrent3.SlackBuild b/qbittorrent/build/qbittorrent3.SlackBuild index d110da97..56d120e0 100755 --- a/qbittorrent/build/qbittorrent3.SlackBuild +++ b/qbittorrent/build/qbittorrent3.SlackBuild @@ -155,19 +155,18 @@ SRCURL[0]="http://downloads.sourceforge.net/sourceforge/${SRCNAM}/${SRCNAM}-${VE ## # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i586 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" + i?86) SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; x86_64) SLKCFLAGS="-O2 -fPIC" |