diff options
author | powtrix <powtrix@gmail.com> | 2015-04-03 12:50:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-03 20:50:18 +0700 |
commit | c2f5dfc28bd047f5725c08c69daf7c18d4c322dc (patch) | |
tree | 410fa6e67748f2a13b3959cb03cbccbb1b97225d | |
parent | 503fa39eb65ad9a8f8b37e8e1811ed503f251f7b (diff) |
system/kexec-tools: Removed -fPIC to load kernel.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/kexec-tools/kexec-tools.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/system/kexec-tools/kexec-tools.SlackBuild b/system/kexec-tools/kexec-tools.SlackBuild index e218008c1320b..2539b9654e0f8 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" |