From 6cc55545436b4f85fcd2ad9b0e4abc39550d4efa Mon Sep 17 00:00:00 2001 From: melikamp Date: Tue, 9 Aug 2016 16:05:03 +0100 Subject: network/icecat: Build with -Os to prevent crashes. Signed-off-by: David Spencer --- network/icecat/icecat.SlackBuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'network/icecat/icecat.SlackBuild') 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 "} -- cgit v1.2.3