Skip to content

Commit

Permalink
minor: changed configure.in to force 64-bit objects when on gcc-based…
Browse files Browse the repository at this point in the history
… ppc64 platform

--HG--
extra : convert_revision : a541eaa2da29f2de1a0b728c7531c3a174d43f3c
  • Loading branch information
Alan-R committed Nov 2, 2007
1 parent a3693b8 commit aff0c4f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,16 @@ dnl Can force other with environment variable "CC".
AC_PROG_CC
AC_PROG_CC_STDC

case "$host_cpu" in
ppc64)
case $CFLAGS in
*powerpc64*) ;;
*) if test "$GCC" = yes; then
CFLAGS="$CFLAGS -mpowerpc64"
fi ;;
esac
esac

dnl ************************************************************************
dnl Test to see whether library directories should be lib or lib64...
dnl ************************************************************************
Expand All @@ -249,7 +259,7 @@ tmpCfile=${tmpdir}/$$test.c
tmpOutfile=${tmpdir}/$$test
echo 'int main(int argc, char** argv) { return(1);}' >$tmpCfile
if
${CC} ${tmpCfile} -o ${tmpOutfile}
${CC} ${CFLAGS} ${tmpCfile} -o ${tmpOutfile}
then
LIBC=`${LDD} ${tmpOutfile} | grep libc | sed -e 's%.*=> *%%' -e 's% .*$%%'`
LibCdir=`dirname $LIBC`
Expand Down

0 comments on commit aff0c4f

Please sign in to comment.