Accepting request 904594 from home:wfrisch:branches:science:HPC

Link as position independent executables (bsc#1184124).
  - Added PIE.patch
  - PIE is still disabled on s390x due to build failures.

OBS-URL: https://build.opensuse.org/request/show/904594
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=43
This commit is contained in:
Nicolas Morey-Chaisemartin 2021-07-07 15:43:52 +00:00 committed by Git OBS Bridge
parent a223e19789
commit 570783a472
3 changed files with 22 additions and 0 deletions

14
PIE.patch Normal file
View File

@ -0,0 +1,14 @@
Index: mstflint-4.16.0/configure.ac
===================================================================
--- mstflint-4.16.0.orig/configure.ac
+++ mstflint-4.16.0/configure.ac
@@ -58,6 +58,9 @@ LDL=""
default_en_inband=""
LDFLAGS="${LDFLAGS} -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64"
+if test "$host_cpu" != "s390x"; then
+ LDFLAGS="${LDFLAGS} -pie"
+fi
CXXFLAGS="${CXXFLAGS} -isystem /usr/local/include"
if test "x$OS" = "xFreeBSD"; then
AC_MSG_NOTICE(FreeBSD Build)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 25 16:58:42 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Link as position independent executables (bsc#1184124).
- Added PIE.patch
-------------------------------------------------------------------
Wed Apr 7 11:52:58 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>

View File

@ -30,6 +30,7 @@ Source: https://github.com/Mellanox/mstflint/releases/download/v%{versio
Patch1: Remove-date-time-info-from-build.patch
Patch4: Fix-gcc7-and-gcc8.patch
Patch5: fix-race-condition-during-install.patch
Patch6: PIE.patch
BuildRequires: gcc-c++
BuildRequires: infiniband-diags-devel
BuildRequires: libibverbs-devel
@ -52,6 +53,7 @@ the downloads page at the Mellanox web site.
%patch1
%patch4
%patch5
%patch6 -p1
%build
./autogen.sh