SHA256
1
0
forked from pool/mvapich2
mvapich2/0001-Drop-GCC-check.patch
Nicolas Morey-Chaisemartin 6e2d12369f Accepting request 687143 from home:anag:branches:science:HPC
- Add patch to remove obsolete GCC check (bnc#1129421). It also patches
  autogen.sh to get the autotools working in SLE12SP4.
  * 0001-Drop-GCC-check.patch
- Force to re-run autotools to generate properly the files after 
  patching src/binding/cxx/buildiface

OBS-URL: https://build.opensuse.org/request/show/687143
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=54
2019-03-21 12:59:45 +00:00

47 lines
1.2 KiB
Diff

diff -Nrua autogen.sh autogen.sh
--- autogen.sh
+++ autogen.sh
@@ -516,7 +516,7 @@
echo_n "Checking for automake version... "
recreate_tmp
-ver=1.15
+ver=1.13
cat > .tmp/configure.ac<<EOF
AC_INIT(testver,1.0)
AC_CONFIG_AUX_DIR([m4])
@@ -554,7 +554,7 @@
echo_n "Checking for libtool version... "
recreate_tmp
-ver=2.4.3
+ver=2.4.2
cat <<EOF >.tmp/configure.ac
AC_INIT(testver,1.0)
AC_CONFIG_AUX_DIR([m4])
diff -Nrua src/binding/cxx/buildiface src/binding/cxx/buildiface
--- src/binding/cxx/buildiface
+++ src/binding/cxx/buildiface
@@ -1454,21 +1454,6 @@
#endif\n\n";
}
- # GCC changed the calling convention between 3.2.3 and 3.4.3 (!!!)
- # check for that
- print $OUTFD "
-// Check for incompatible GCC versions
-// GCC (specifically) g++ changed the calling convention
-// between 3.2.3 and 3.4.3 (!!) Normally such changes
-// should only occur at major releases (e.g., version 3 to 4)
-#ifdef __GNUC__
-# if __GNUC__ >= \@GNUCXX_VERSION\@
-# if __GNUC_MINOR__ > 2 && \@GNUCXX_MINORVERSION\@ == 2
-# error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs'
-# endif
-# endif
-#endif\n";
-
print $OUTFD "
/*
* Because the API is defined, some methods have parameters that are