Accepting request 499769 from home:NMoreyChaisemartin:branches:science:HPC

- Add mstflint-gcc7.patch for GCC7 support

OBS-URL: https://build.opensuse.org/request/show/499769
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=11
This commit is contained in:
Nicolas Morey-Chaisemartin 2017-05-30 13:25:19 +00:00 committed by Git OBS Bridge
parent 4641787595
commit 12a91b11cd
3 changed files with 20 additions and 0 deletions

12
mstflint-gcc7.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git configure.ac configure.ac
index f988818..8384528 100644
--- configure.ac
+++ configure.ac
@@ -98,6 +98,7 @@ AS_IF([test "x$enable_dynamic_ld" = "xyes"], [
LDFLAGS="$LDFLAGS -Wl,--dynamic-linker=/lib64/ld64.so.2"
])
+CPPFLAGS="$CPPFLAGS -Wno-implicit-fallthrough"
CFLAGS="$CFLAGS -Werror -DMST_UL"
CXXFLAGS="$CXXFLAGS -Werror -DMST_UL"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 30 12:21:38 UTC 2017 - nmoreychaisemartin@suse.com
- Add mstflint-gcc7.patch for GCC7 support
-------------------------------------------------------------------
Thu May 18 05:54:00 UTC 2017 - nmoreychaisemartin@suse.com

View File

@ -38,6 +38,8 @@ Patch2: mstflint-4.4.0-implicit-declaration.patch
Patch3: mstflint-4.4.0-no-date-time.patch
# PATCH-FIX-UPSTREAM Add all needed defines to get it built on armv7
Patch4: mstflint-armv7_arch.patch
# PATCH-FIX-UPSTREAM Ignore fallthrough for GCC7 support
Patch5: mstflint-gcc7.patch
BuildRequires: gcc-c++
BuildRequires: libibmad-devel
@ -61,6 +63,7 @@ the downloads page at the Mellanox web site.
%patch2
%patch3
%patch4
%patch5
%build
./autogen.sh