solaris: - rename WM_ARCH from SunOS to solaris64 for consistency with wmake/rules - drop non-64 solaris from wmake/rules - remove automatic selection of FJMPI. This should be done in the bashrc or prefs.sh file instead. - remove old (likely inaccurate) exported flags, rely on wmake -show-xyz or user config instead darwin: - remove '-Ddarwin' from the exported WM_CFLAGS, WM_CXXFLAGS. Not used elsewhere (ThirdParty)
43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
#----------------------------------*-sh-*--------------------------------------
|
|
# ========= |
|
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
# \\ / O peration |
|
|
# \\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
|
# \\/ M anipulation |
|
|
#------------------------------------------------------------------------------
|
|
# | Copyright (C) 2011-2016 OpenFOAM Foundation
|
|
#------------------------------------------------------------------------------
|
|
# License
|
|
# This file is part of OpenFOAM, licensed under GNU General Public License
|
|
# <http://www.gnu.org/licenses/>.
|
|
#
|
|
# File
|
|
# config.sh/example/compiler
|
|
# - sourced by OpenFOAM-*/etc/config.sh/settings
|
|
#
|
|
# Description
|
|
# Example of fine tuning compiler versions and settings for OpenFOAM
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Load the standard versions
|
|
eval $($WM_PROJECT_DIR/bin/foamEtcFile -sh -config -mode=o compiler)
|
|
|
|
# Modify/override compiler settings
|
|
case "$WM_COMPILER" in
|
|
Gcc70)
|
|
gcc_version=gcc-7.0.0
|
|
gmp_version=gmp-6.1.2
|
|
mpfr_version=mpfr-3.1.5
|
|
mpc_version=mpc-1.0.3
|
|
;;
|
|
Gcc48u)
|
|
# Example of using the system GCC 4.8 in Ubuntu 15.10. Keep in mind you
|
|
# will also need to create the respective directory in "wmake/rules"
|
|
export CC='gcc-4.8'
|
|
export CXX='g++-4.8'
|
|
;;
|
|
esac
|
|
|
|
#------------------------------------------------------------------------------
|