mstflint/PIE.patch
Nicolas Morey-Chaisemartin 570783a472 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
2021-07-07 15:43:52 +00:00

15 lines
487 B
Diff

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)