aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authormelikamp <melikamp@melikamp.net>2016-08-09 16:05:03 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-13 07:22:19 +0700
commit6cc55545436b4f85fcd2ad9b0e4abc39550d4efa (patch)
treeb617579436ab5fd7c675bbba523a759b91fdf0ec /network
parent5bfd4bfdf15884d76719fff2612d08ed9fd10914 (diff)
network/icecat: Build with -Os to prevent crashes.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-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 eee8b93d5b28..d970fe3b5978 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 "}