Fellow Slackers,
I just updated samhain. There was a compiler error in gcc with the optimization set at -02. So it is removed from the slackbuild.

I only tried it on 64 bit Slackware 14.1. I don't even have a 32 bit version around anymore. I don't know what's best but I've attached a git patch that can be applied.

scott
>From ac99c643658e1287a683bd6fe08a90bf74ac21a9 Mon Sep 17 00:00:00 2001
From: Richard Scott Smith <[email protected]>
Date: Tue, 19 Nov 2013 23:14:59 -0700
Subject: [PATCH] system/samhain: Removed the compiler optimization -02 due to
 a gcc bug.

---
 system/samhain/samhain.SlackBuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 system/samhain/samhain.SlackBuild

diff --git a/system/samhain/samhain.SlackBuild 
b/system/samhain/samhain.SlackBuild
old mode 100644
new mode 100755
index 3231f84..cc8fc82
--- a/system/samhain/samhain.SlackBuild
+++ b/system/samhain/samhain.SlackBuild
@@ -41,16 +41,16 @@ PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
 if [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-march=i486 -mtune=i686"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "i686" ]; then
-  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+  SLKCFLAGS="-march=i686 -mtune=i686"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "x86_64" ]; then
-  SLKCFLAGS="-O2 -fPIC"
+  SLKCFLAGS="-fPIC"
   LIBDIRSUFFIX="64"
 else
-  SLKCFLAGS="-O2"
+  SLKCFLAGS=""
   LIBDIRSUFFIX=""
 fi
 
-- 
1.8.4

_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/

Reply via email to