[vlc-devel] [PATCH 3/3] configure: use -pie -fPIE for Position Independent Executable

Rémi Denis-Courmont remi at remlab.net
Mon Nov 13 10:11:12 CET 2017


Le 13 novembre 2017 00:59:48 GMT+02:00, Jean-Baptiste Kempf <jb at videolan.org> a écrit :
>-- 
>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
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

Not sure you can add PIE to everything, as opposed to executables only.
-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.


More information about the vlc-devel mailing list