aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorpowtrix <powtrix@gmail.com>2015-04-03 12:50:34 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-03 20:50:18 +0700
commitc2f5dfc28bd047f5725c08c69daf7c18d4c322dc (patch)
tree410fa6e67748f2a13b3959cb03cbccbb1b97225d /system
parent503fa39eb65ad9a8f8b37e8e1811ed503f251f7b (diff)
system/kexec-tools: Removed -fPIC to load kernel.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/kexec-tools/kexec-tools.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/kexec-tools/kexec-tools.SlackBuild b/system/kexec-tools/kexec-tools.SlackBuild
index e218008c1320..2539b9654e0f 100644
--- a/system/kexec-tools/kexec-tools.SlackBuild
+++ b/system/kexec-tools/kexec-tools.SlackBuild
@@ -5,7 +5,7 @@
PRGNAM=kexec-tools
VERSION=${VERSION:-2.0.9}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -28,7 +28,11 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ # Fixed by Thibaut
+ # The -fPIC breaks the purgatory of kexec (= the code that passes
+ #command-line arguments to the kernel): kexec doesn't know how to
+ #handle the GOT and PLT relocation entries.
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"