Author: dgilmore Date: 2012-08-20 15:50:25 -0400 (Mon, 20 Aug 2012) New Revision: 4011
Modified: trunk/configure trunk/configure.ac Log: Host related configure settings should not be determined by target setting. This problem was exposed by allowing the X86 compiler to be built either 32 or 64 bit (independent of how it is built, the X86 compiler can target both 32 or 64 bit architectures. CR: David Coakley Modified: trunk/configure =================================================================== --- trunk/configure 2012-08-20 00:13:16 UTC (rev 4010) +++ trunk/configure 2012-08-20 19:50:25 UTC (rev 4011) @@ -1569,6 +1569,8 @@ LIB2_BUILD_ARCH= LIB2_BUILD_HOST= +CYGNUS_CONFIGURE_CFLAGS= + # Set variables based on the host machine that the compiler will run on. case "$host" in x86_64*-*-linux*) @@ -1577,6 +1579,7 @@ BUILD_HOST=X8664 CYGNUS_CONFIGURE_HOST=i686-open64-linux GCC_CONFIGURE_HOST=x86_64-redhat-linux + GCC_CONFIGURE_COMPILER+=" -m64" ;; i*86*-*-linux*) BUILD_ABI=I32BIT @@ -1584,6 +1587,8 @@ BUILD_HOST=IA32 CYGNUS_CONFIGURE_HOST=i686-open64-linux GCC_CONFIGURE_HOST=x86_64-redhat-linux + GCC_CONFIGURE_COMPILER+=" -m32" + CYGNUS_CONFIGURE_CFLAGS="-m32" ;; ia64*-*-linux*) BUILD_ABI=I64BIT @@ -1599,7 +1604,6 @@ ;; esac -CYGNUS_CONFIGURE_CFLAGS= BUILD_VENDOR= # Set variables based on the target machine that the compiler will generate @@ -1618,7 +1622,6 @@ LIB2_BUILD_ARCH=X8664 CYGNUS_CONFIGURE_TARG=x86_64-open64-linux GCC_CONFIGURE_TARG=x86_64-redhat-linux - GCC_CONFIGURE_COMPILER+=" -m64" GCC_CONFIGURE_CFLAGS+=" -DTARG_X8664" ;; i*86*-*-linux*) @@ -1634,9 +1637,7 @@ LIB2_BUILD_ARCH=X8664 CYGNUS_CONFIGURE_TARG=x86_64-open64-linux GCC_CONFIGURE_TARG=x86_64-redhat-linux - GCC_CONFIGURE_COMPILER+=" -m32" GCC_CONFIGURE_CFLAGS+=" -DTARG_X8664" - CYGNUS_CONFIGURE_CFLAGS="-m32" ;; ia64*-*-linux*) MACHINE_TYPE=ia64 Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2012-08-20 00:13:16 UTC (rev 4010) +++ trunk/configure.ac 2012-08-20 19:50:25 UTC (rev 4011) @@ -196,6 +196,8 @@ LIB2_BUILD_ARCH= LIB2_BUILD_HOST= +CYGNUS_CONFIGURE_CFLAGS= + # Set variables based on the host machine that the compiler will run on. case "$host" in x86_64*-*-linux*) @@ -204,6 +206,7 @@ BUILD_HOST=X8664 CYGNUS_CONFIGURE_HOST=i686-open64-linux GCC_CONFIGURE_HOST=x86_64-redhat-linux + GCC_CONFIGURE_COMPILER+=" -m64" ;; i*86*-*-linux*) BUILD_ABI=I32BIT @@ -211,6 +214,8 @@ BUILD_HOST=IA32 CYGNUS_CONFIGURE_HOST=i686-open64-linux GCC_CONFIGURE_HOST=x86_64-redhat-linux + GCC_CONFIGURE_COMPILER+=" -m32" + CYGNUS_CONFIGURE_CFLAGS="-m32" ;; ia64*-*-linux*) BUILD_ABI=I64BIT @@ -224,7 +229,6 @@ ;; esac -CYGNUS_CONFIGURE_CFLAGS= BUILD_VENDOR= # Set variables based on the target machine that the compiler will generate @@ -243,7 +247,6 @@ LIB2_BUILD_ARCH=X8664 CYGNUS_CONFIGURE_TARG=x86_64-open64-linux GCC_CONFIGURE_TARG=x86_64-redhat-linux - GCC_CONFIGURE_COMPILER+=" -m64" GCC_CONFIGURE_CFLAGS+=" -DTARG_X8664" ;; i*86*-*-linux*) @@ -259,9 +262,7 @@ LIB2_BUILD_ARCH=X8664 CYGNUS_CONFIGURE_TARG=x86_64-open64-linux GCC_CONFIGURE_TARG=x86_64-redhat-linux - GCC_CONFIGURE_COMPILER+=" -m32" GCC_CONFIGURE_CFLAGS+=" -DTARG_X8664" - CYGNUS_CONFIGURE_CFLAGS="-m32" ;; ia64*-*-linux*) MACHINE_TYPE=ia64 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel