mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
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:
11
makeGcc
11
makeGcc
@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user