[vlc-devel] [PATCH 3/3] configure: use -pie -fPIE for Position Independent Executable
Jean-Baptiste Kempf
jb at videolan.org
Sun Nov 12 23:59:48 CET 2017
--
The impact should be limited, since the vlc executable is quite small...
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index d438c7808f..a32b14fdd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1125,6 +1125,8 @@ AH_BOTTOM([
AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong], [CFLAGS])
])
+AX_APPEND_COMPILE_FLAGS([-pie -fPIE], [CFLAGS])
+
VLC_SAVE_FLAGS
LDFLAGS="${LDFLAGS} -Wl,-Bsymbolic"
AC_CACHE_CHECK([if linker supports -Bsymbolic], [ac_cv_ld_bsymbolic], [
--
2.15.0.448.gf294e3d99a
More information about the vlc-devel
mailing list