diff --git a/makeGcc b/makeGcc index 742d564..a4223e2 100755 --- a/makeGcc +++ b/makeGcc @@ -4,7 +4,7 @@ # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | # \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation -# \\/ M anipulation | +# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM. @@ -74,6 +74,7 @@ usage: $Script [OPTION] [gcc-VERSION] [gmp-VERSION] [mpfr-VERSION] [mpc-VERSION] options: -multilib for 64-bit systems with 32-bit support required -no-multilib for 64-bit systems without 32-bit support (DEFAULT) + -no-threadsafe disable mpfr thread-safe (default is auto-detect) -system use system versions for gmp/mpfr/mpc -help @@ -90,6 +91,7 @@ USAGE # build 32-bit libraries on 64-bit systems (normally not needed) optMultilib=disable +unset optThreadSafe # unset=auto # Parse options while [ "$#" -gt 0 ] @@ -104,6 +106,9 @@ do -no-multi*) optMultilib=disable ;; + -no-thread*) + optThreadSafe=disable + ;; -sys*) gmpPACKAGE="gmp-system" mpfrPACKAGE="mpfr-system" @@ -118,7 +123,7 @@ do mpc-[0-9]* | mpc-system) mpcPACKAGE="${1%%/}" ;; - gcc-[4-9]*) + gcc-[4-9]* | gcc-system) gccPACKAGE="${1%%/}" ;; *) @@ -203,6 +208,14 @@ fi if [ -d "$GMP_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH" ] then _foamAddLib "$GMP_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH" + + configGMP=$(cat <