[FFmpeg-cvslog] configure: Use linker hardening flags on mingw

Alex Smith git at videolan.org
Wed May 15 20:21:24 CEST 2013


ffmpeg | branch: master | Alex Smith <alex.smith at warpsharp.info> | Tue May 14 10:05:52 2013 -0400| [225a5f91cc83f684e948d3c23ce5e5de0c041ecb] | committer: Martin Storsjö

configure: Use linker hardening flags on mingw

This makes it consistent with the msvc builds which automatically set
the DEP and ASLR flags by default.  There really is no good reason why
they shouldn't be set.

The fact that binutils does not set them on by default boggles the mind.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=225a5f91cc83f684e948d3c23ce5e5de0c041ecb
---

 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index c84050c..7bcaac3 100755
--- a/configure
+++ b/configure
@@ -3029,6 +3029,8 @@ case $target_os in
         elif enabled arm; then
             LIBTARGET=arm-wince
         fi
+        check_ldflags -Wl,--nxcompat
+        check_ldflags -Wl,--dynamicbase
         shlibdir_default="$bindir_default"
         SLIBPREF=""
         SLIBSUF=".dll"



More information about the ffmpeg-cvslog mailing list