[Slackbuilds-users] Samhain Update

Richard Scott Smith pilbender at gmail.com
Fri Nov 22 05:17:44 UTC 2013


That's great stuff Willy.  Thanks for sharing it.  Don't know what's 
different in gcc on the multilib version.

I'm attaching a new patch with the 2 combined changes.

scott

On 11/21/2013 08:52 PM, Willy Sudiarto Raharjo wrote:
>>> LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
>>>
>>> It works fine either way, as long as I take out the optimization -02 flag.
>>>
>>> Let me know if you want a second patch, leave it as is, or a single patch
>>> containing these 2 changes.  I would rather not leave it as is because it
>>> does not work for a multilib system.
>
> By the way, here's a build log on 32 bit machine if you are curious :)
>
>
>
>

-------------- next part --------------
>From 0ac4a25fad70c3ad23e1d0012f77c90738330126 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.

Added LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ to the configure portion
of the script.
---
 system/samhain/samhain.SlackBuild | 9 +++++----
 1 file changed, 5 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..d736aad
--- 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
 
@@ -73,6 +73,7 @@ find -L . \
 
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
+LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
 ./configure \
   --prefix=/usr \
   --sysconfdir=/etc \
-- 
1.8.4



More information about the SlackBuilds-users mailing list