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>
This commit is contained in:
Steven Pledger 2011-03-03 20:15:27 -06:00 committed by Robby Workman
parent ad85ea5ade
commit c42b16167c

View file

@ -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