File PIE.patch of Package mstflint
commit 77ebcfe7e1c1d5a3037761aa64de6f9ca32361d7
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Date: Fri Jul 9 13:01:55 2021 +0200
PIE
Hardware error from APEI Generic Hardware Error Source: 0
Signed-off-by: Hardware error from APEI Generic Hardware Error Source: 0
diff --git configure.ac configure.ac
index dc356443f2cc..ef5fc5584e6a 100644
--- configure.ac
+++ configure.ac
@@ -104,6 +104,12 @@ else
fi
fi
+# All bin programs are linked using LDL
+# reuse this instead of LDFLAGS as it would mess
+# up shared lib builds
+if test "$host_cpu" != "s390x"; then
+ LDL="${LDL} -pie"
+fi
AC_SUBST(MTCR_CONF_DIR)
AC_SUBST(VFIO_DRIVER_DIR)