forked from pool/mstflint
570783a472
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
15 lines
487 B
Diff
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)
|