summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Steven Pledger2011-03-04 03:15:27 +0100
committer Robby Workman2011-03-04 17:12:48 +0100
commitc42b16167c474e823a114e53cf035d4da15e0b24 (patch)
tree19bb1bd5f1f6ebbeb6bf5d1e6d396762ced1272d
parentad85ea5ade9a74681b26f81f4a5f0b04c873ed89 (diff)
downloadslackbuilds-c42b16167c474e823a114e53cf035d4da15e0b24.tar.gz
system/gdisk: Don't override C(XX)FLAGS during build
Doing so will omit "-D_FILE_OFFSET_BITS=64" from them, and gdisk will think your GPT is damaged on 32bit systems. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--system/gdisk/gdisk.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/gdisk/gdisk.SlackBuild b/system/gdisk/gdisk.SlackBuild
index bcb1890d38..a55e4519a9 100644
--- a/system/gdisk/gdisk.SlackBuild
+++ b/system/gdisk/gdisk.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=gdisk
VERSION=${VERSION:-0.6.14}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,9 +51,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-make \
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS"
+# Don't override C(XX)FLAGS, most importantly the "-D_FILE_OFFSET_BITS=64"
+# or gdisk will think your GPT table is damaged...
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make
mkdir -p $PKG/usr/sbin
install -m 0755 gdisk $PKG/usr/sbin