ThirdParty: ParMGridGen-1.0, metis-5.0pre2, scotch-5.1.10b: adjusting the compilation so we can use another compiler than gcc
This commit is contained in:
parent
d165d80833
commit
db1cd7b2bb
3 changed files with 13 additions and 7 deletions
|
@ -95,8 +95,14 @@ Patch1: ParMGridGen-1.0.patch
|
|||
%endif
|
||||
|
||||
%build
|
||||
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
||||
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
||||
[ -n "$WM_CFLAGS" ] && export CFLAGS="$WM_CFLAGS"
|
||||
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
||||
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||
make -j $WM_NCOMPPROCS
|
||||
|
||||
make -j $WM_NCOMPPROCS CC=$CC
|
||||
|
||||
%install
|
||||
# Manual installation
|
||||
|
|
8
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
8
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
|
@ -102,11 +102,11 @@ Patch0: metis-5.0pre2_patch_darwin
|
|||
|
||||
%ifos darwin
|
||||
# The parameter -D_POSIX_C_SOURCE=200809 has a side effect on Mac OS X
|
||||
(cd GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC")
|
||||
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC")
|
||||
(cd GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC" CC=$CC)
|
||||
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC" CC=$CC)
|
||||
%else
|
||||
(cd GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC -D_POSIX_C_SOURCE=200809")
|
||||
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC -D_POSIX_C_SOURCE=200809")
|
||||
(cd GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC -D_POSIX_C_SOURCE=200809" CC=$CC)
|
||||
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC -D_POSIX_C_SOURCE=200809" CC=$CC)
|
||||
%endif
|
||||
|
||||
%install
|
||||
|
|
|
@ -106,8 +106,8 @@ Patch0: scotch-5.1.10b_patch_0
|
|||
%endif
|
||||
|
||||
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||
make -j $WM_NCOMPPROCS scotch
|
||||
make -j $WM_NCOMPPROCS ptscotch
|
||||
make -j $WM_NCOMPPROCS scotch CC="$WM_CC" CXX="$WM_CXX" CCD="$WM_CC" CCS="$WM_CC" AR="$WM_CC"
|
||||
make -j $WM_NCOMPPROCS ptscotch AR="$WM_CC"
|
||||
|
||||
%install
|
||||
cd src
|
||||
|
|
Reference in a new issue