]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not try to use -pie on windows; it appears to break badly and weirdly
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Jun 2012 16:22:48 +0000 (12:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Jun 2012 16:23:42 +0000 (12:23 -0400)
configure.in

index 7167ca9366b978ed734b17cba65fba5c4ec10b05..051c924a9d961a4e6c96f495a4bac154cbe144a7 100644 (file)
@@ -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