Skip to content

Commit

Permalink
use GCC -m flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Heber committed May 21, 2007
1 parent 7e03779 commit 3675c7e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,18 @@ dnl Figure out if we are 32-bit or 64-bit (LP64)
AC_CHECK_SIZEOF(void *)
if test "$ac_cv_sizeof_void_p" = 8; then
AC_MSG_RESULT(Building 64-bit)
CFLAGS="-DJU_64BIT $CFLAGS"
if test x"$GCC" = xyes; then
CFLAGS="-DJU_64BIT -m64 $CFLAGS"
else
CFLAGS="-DJU_64BIT $CFLAGS"
fi
else
AC_MSG_RESULT(Building 32-bit)
CFLAGS="-UJU_64BIT $CFLAGS"
if test x"$GCC" = xyes; then
CFLAGS="-UJU_64BIT -m32 $CFLAGS"
else
CFLAGS="-UJU_64BIT $CFLAGS"
fi
fi


Expand Down

0 comments on commit 3675c7e

Please sign in to comment.