]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
snownews: removed -O2 for x86_64 to prevent segfaults
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 21 Jan 2008 12:16:48 +0000 (12:16 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 21 Jan 2008 12:16:48 +0000 (12:16 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1601 370017ae-e619-0410-ac65-c121f96126d4

net/news/snownews/snownews.SlackBuild

index 3ece71046529b2f1813cebf48dca8247c7febb53..0b6df04cf387b14cb5729d2d4b0698c758d3d8e2 100755 (executable)
@@ -95,6 +95,11 @@ CFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix="$PREFIX" $CONF_OPTIONS || exit $ERROR_CONF
 
+# Fix against segfault
+if [ "$ARCH" == "x86_64" ]; then
+  sed -i 's/-O2 //g' platform_settings
+fi
+
 # Compile
 make $NUMJOBS || exit $ERROR_MAKE