Skip to content

Commit

Permalink
BuildPackages.sh: replace (broken) hack for detecting 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and markuspf committed Jul 17, 2017
1 parent 915ba8c commit 13b2976
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions bin/BuildPackages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,24 @@ then
"first argument with '--with-gaproot=' to this script."
fi

# HACK FIXME: detect whether GAP was built in 32bit mode
if [[ "$(grep -c 'ABI = 32' $GAPROOT/GNUMakefile)" -ge 1 ]]
then
notice "Building with 32-bit ABI"
ABI32=YES
CONFIGFLAGS="CFLAGS=-m32 LDFLAGS=-m32 LOPTS=-m32 CXXFLAGS=-m32"
fi
# read in sysinfo
source "$GAPROOT/sysinfo.gap"

# detect whether GAP was built in 32bit mode
case "$GAParch_abi" in
32-bit)
notice "Building with 32-bit ABI"
ABI32=YES
CONFIGFLAGS="CFLAGS=-m32 LDFLAGS=-m32 LOPTS=-m32 CXXFLAGS=-m32"
;;
64-bit)
notice "Building with 64-bit ABI"
ABI32=NO
;;
*)
error "Unsupported GAP ABI '$GAParch_abi'."
;;
esac


LOGDIR=log
Expand Down

0 comments on commit 13b2976

Please sign in to comment.