ThirdParty packages: modification for calling make another compiler than gcc
This commit is contained in:
parent
aa07a9fcd8
commit
064a6e9f33
3 changed files with 12 additions and 5 deletions
|
@ -95,8 +95,15 @@ 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
|
||||
|
|
4
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
4
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
|
@ -105,8 +105,8 @@ Patch0: metis-5.0pre2_patch_darwin
|
|||
(cd GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC")
|
||||
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC")
|
||||
%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