From 0999d300676ea0a69c6e2fa822221d4d4d978645 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 17 Jul 2013 23:09:09 -0400 Subject: [PATCH] build: Explicitly disable RTM on non-x86_64 targets. And for x86-32, I don't have an environment with 32-bit support that has RTM. --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6c65e11..dcd38e7 100755 --- a/configure +++ b/configure @@ -224,6 +224,7 @@ LIBRARY=${LIBRARY:-"${PREFIX}/lib"} MANDIR=${MANDIR:-"${PREFIX}/share/man"} GZIP=${GZIP:-"gzip -c"} POINTER_PACK_ENABLE=${POINTER_PACK_ENABLE:-"CK_MD_POINTER_PACK_DISABLE"} +RTM_ENABLE=${RTM_ENABLE_SET:-"CK_MD_RTM_DISABLE"} if test "$PROFILE"; then printf "Using user-specified profile....." @@ -302,12 +303,14 @@ printf "Detecting machine architecture..." PLATFORM=`uname -m 2> /dev/null` case $PLATFORM in "macppc"|"Power Macintosh"|"powerpc") + RTM_ENABLE="CK_MD_RTM_DISABLE" MM="${MM:-"CK_MD_RMO"}" PLATFORM=ppc ENVIRONMENT=32 LDFLAGS="-m32 $LDFLAGS" ;; "sun4u"|"sun4v"|"sparc64") + RTM_ENABLE="CK_MD_RTM_DISABLE" MM="${MM:-"CK_MD_TSO"}" PLATFORM=sparcv9 ENVIRONMENT=64 @@ -360,13 +363,13 @@ case $PLATFORM in esac ;; "amd64"|"x86_64") - RTM_ENABLE=${RTM_ENABLE_SET:-"CK_MD_RTM_DISABLE"} PLATFORM=x86_64 ENVIRONMENT=64 LDFLAGS="-m64 $LDFLAGS" MM="${MM:-"CK_MD_TSO"}" ;; "i86pc") + RTM_ENABLE="CK_MD_RTM_DISABLE" MM="${MM:-"CK_MD_TSO"}" ISA=`isainfo -n 2> /dev/null || echo i386` case "$ISA" in @@ -383,11 +386,13 @@ case $PLATFORM in esac ;; "ppc64") + RTM_ENABLE="CK_MD_RTM_DISABLE" MM="${MM:-"CK_MD_RMO"}" PLATFORM=ppc64 ENVIRONMENT=64 ;; *) + RTM_ENABLE="CK_MD_RTM_DISABLE" PLATFORM= MM="${MM:-"CK_MD_RMO"}" ;;