[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Do not try to use -pie on windows; it appears to break badly and weirdly



commit 4717951cfaa7bc97ace35b6a542495680844f407
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Jun 11 12:22:48 2012 -0400

    Do not try to use -pie on windows; it appears to break badly and weirdly
---
 configure.in |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 7167ca9..051c924 100644
--- a/configure.in
+++ b/configure.in
@@ -566,9 +566,11 @@ if test x$enable_gcc_hardening != xno; then
     TOR_CHECK_CFLAGS(-fstack-protector-all)
     TOR_CHECK_CFLAGS(-Wstack-protector)
     TOR_CHECK_CFLAGS(-fwrapv)
-    TOR_CHECK_CFLAGS(-fPIE)
     TOR_CHECK_CFLAGS(--param ssp-buffer-size=1)
-    TOR_CHECK_LDFLAGS(-pie, "$all_ldflags_for_check", "$all_libs_for_check")
+    if test "$bwin32" = "false"; then
+       TOR_CHECK_CFLAGS(-fPIE)
+       TOR_CHECK_LDFLAGS(-pie, "$all_ldflags_for_check", "$all_libs_for_check")
+    fi
 fi
 
 if test x$enable_linker_hardening != xno; then



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits