[x264-devel] mingw: Enable the tsaware linker flag
Henrik Gramner
git at videolan.org
Wed Aug 19 21:16:13 CEST 2015
x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Jul 26 23:13:29 2015 +0200| [b1cbf7ebe4a192bbc25cc910cb2910a34992f807] | committer: Anton Mitrofanov
mingw: Enable the tsaware linker flag
Avoids an irrelevant compatibility layer in Terminal Services environments.
https://msdn.microsoft.com/en-us/library/cc834995.aspx
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=b1cbf7ebe4a192bbc25cc910cb2910a34992f807
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index fb761d6..2ab09a0 100755
--- a/configure
+++ b/configure
@@ -683,7 +683,7 @@ case $host_cpu in
elif [ "$SYS" = WINDOWS -o "$SYS" = CYGWIN ]; then
ASFLAGS="$ASFLAGS -f win32 -DPREFIX"
LDFLAGS="$LDFLAGS -Wl,--large-address-aware"
- [ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--nxcompat -Wl,--dynamicbase"
+ [ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--dynamicbase,--nxcompat,--tsaware"
[ $compiler = GNU ] && RCFLAGS="--target=pe-i386 $RCFLAGS"
else
ASFLAGS="$ASFLAGS -f elf32"
@@ -705,7 +705,7 @@ case $host_cpu in
ASFLAGS="$ASFLAGS -f win64"
# only the GNU toolchain is inconsistent in prefixing function names with _
[ $compiler = GNU ] && cc_check "" "-S" && grep -q "_main:" conftest && ASFLAGS="$ASFLAGS -DPREFIX"
- [ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--nxcompat -Wl,--dynamicbase"
+ [ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--dynamicbase,--nxcompat,--tsaware"
[ $compiler = GNU ] && RCFLAGS="--target=pe-x86-64 $RCFLAGS"
else
ASFLAGS="$ASFLAGS -f elf64"
More information about the x264-devel
mailing list