summaryrefslogtreecommitdiff
path: root/network/icecat
diff options
context:
space:
mode:
Diffstat (limited to 'network/icecat')
-rw-r--r--network/icecat/icecat.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/network/icecat/icecat.SlackBuild b/network/icecat/icecat.SlackBuild
index eee8b93d5b..d970fe3b59 100644
--- a/network/icecat/icecat.SlackBuild
+++ b/network/icecat/icecat.SlackBuild
@@ -28,12 +28,12 @@ PRGNAM="icecat"
VERSION=${VERSION:-38.8.0}
RELEASEVER="$VERSION"
RELEASEVERMAJ=$(echo $RELEASEVER | cut -f 1 -d .)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -44,7 +44,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
SLKCFLAGS=""
LIBDIRSUFFIX=""
OPTIMIZE=" --enable-optimize=-O2 "
@@ -74,6 +74,9 @@ else
OPTIMIZE=" --enable-optimize=-O2 "
fi
+# workaround to prevent unidentified crashes on some cpus
+OPTIMIZE="$(echo "$OPTIMIZE" | sed 's/O2/Os/g')"
+
# When it works, it builds much faster.
#NUMJOBS=${NUMJOBS:-" -j7 "}