ThirdParty-dev/makeGcc: added "-no-multilib" option

Patch contributed by Bruno Santos
Resolves patch request http://bugs.openfoam.org/view.php?id=2113
This commit is contained in:
Henry Weller
2016-06-08 15:14:47 +01:00
parent f72ad1f0a6
commit ce4951579b

11
makeGcc
View File

@ -56,7 +56,10 @@ usage() {
while [ "$#" -ge 1 ]; do echo "$1"; shift; done while [ "$#" -ge 1 ]; do echo "$1"; shift; done
cat<<USAGE cat<<USAGE
usage: ${0##*/} [gmp-VERSION] [mpfr-VERSION] [mpc-VERSION] <gcc-VERSION> usage: ${0##*/} [option] [gmp-VERSION] [mpfr-VERSION] [mpc-VERSION] <gcc-VERSION>
options:
-no-multilib for 64-bit systems that don't have 32-bit support
-help
* build combinations of gmp, mpfr, mpc and gcc * build combinations of gmp, mpfr, mpc and gcc
$gmpPACKAGE $gmpPACKAGE
@ -68,6 +71,7 @@ USAGE
exit 1 exit 1
} }
GCC_BUILD_OPTIONS=""
# Parse options # Parse options
while [ "$#" -gt 0 ] while [ "$#" -gt 0 ]
@ -76,6 +80,10 @@ do
-h | -help) -h | -help)
usage usage
;; ;;
-no-multilib)
GCC_BUILD_OPTIONS="--disable-multilib"
shift
;;
gmp-[4-9]*) gmp-[4-9]*)
gmpPACKAGE="${1%%/}" gmpPACKAGE="${1%%/}"
shift shift
@ -274,6 +282,7 @@ else
--enable-__cxa_atexit \ --enable-__cxa_atexit \
--enable-libstdcxx-allocator=new \ --enable-libstdcxx-allocator=new \
--with-system-zlib \ --with-system-zlib \
$GCC_BUILD_OPTIONS \
MAKEINFO=missing \ MAKEINFO=missing \
&& make -j $WM_NCOMPPROCS \ && make -j $WM_NCOMPPROCS \
&& make install \ && make install \