From 12a91b11cd7550f70e5728d6b974baece213d55f36715482423b6fd7499a9ceb Mon Sep 17 00:00:00 2001 From: Nicolas Morey-Chaisemartin Date: Tue, 30 May 2017 13:25:19 +0000 Subject: [PATCH] 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 --- mstflint-gcc7.patch | 12 ++++++++++++ mstflint.changes | 5 +++++ mstflint.spec | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 mstflint-gcc7.patch diff --git a/mstflint-gcc7.patch b/mstflint-gcc7.patch new file mode 100644 index 0000000..3effe8c --- /dev/null +++ b/mstflint-gcc7.patch @@ -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" + diff --git a/mstflint.changes b/mstflint.changes index 97d01a5..b52b8cd 100644 --- a/mstflint.changes +++ b/mstflint.changes @@ -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 diff --git a/mstflint.spec b/mstflint.spec index 7f622ae..c810e7f 100644 --- a/mstflint.spec +++ b/mstflint.spec @@ -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