[libav-devel] [PATCH] configure: Use linker hardening flags on mingw

2013-05-14 Thread Alex Smith
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.
---
 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
-- 
1.8.1.msysgit.1

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


Re: [libav-devel] [PATCH] configure: Use linker hardening flags on mingw

2013-05-14 Thread Martin Storsjö

On Tue, 14 May 2013, Alex Smith wrote:


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.
---
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
--
1.8.1.msysgit.1


Ok with me.

// Martin
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel