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:
Martin Beaudoin 2013-10-23 13:22:56 -04:00
parent d165d80833
commit db1cd7b2bb
3 changed files with 13 additions and 7 deletions

View file

@ -95,8 +95,14 @@ Patch1: ParMGridGen-1.0.patch
%endif %endif
%build %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 [ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
make -j $WM_NCOMPPROCS
make -j $WM_NCOMPPROCS CC=$CC
%install %install
# Manual installation # Manual installation

View file

@ -102,11 +102,11 @@ Patch0: metis-5.0pre2_patch_darwin
%ifos darwin %ifos darwin
# The parameter -D_POSIX_C_SOURCE=200809 has a side effect on Mac OS X # 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 GKlib/trunk && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC" CC=$CC)
(cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC") (cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC" CC=$CC)
%else %else
(cd GKlib/trunk && 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") (cd libmetis && make -j $WM_NCOMPPROCS OPTFLAGS="-O3 -fPIC -D_POSIX_C_SOURCE=200809" CC=$CC)
%endif %endif
%install %install

View file

@ -106,8 +106,8 @@ Patch0: scotch-5.1.10b_patch_0
%endif %endif
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1 [ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
make -j $WM_NCOMPPROCS scotch 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 make -j $WM_NCOMPPROCS ptscotch AR="$WM_CC"
%install %install
cd src cd src