[Slackbuilds-users] Samhain Update

Richard Scott Smith pilbender at gmail.com
Wed Nov 20 06:20:02 UTC 2013


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
-------------- next part --------------
>From ac99c643658e1287a683bd6fe08a90bf74ac21a9 Mon Sep 17 00:00:00 2001
From: Richard Scott Smith <pilbender at gmail.com>
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



More information about the SlackBuilds-users mailing list