From: Nick Mathewson Date: Mon, 11 Jun 2012 16:22:48 +0000 (-0400) Subject: Do not try to use -pie on windows; it appears to break badly and weirdly X-Git-Tag: tor-0.2.3.17-beta~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4717951cfaa7bc97ace35b6a542495680844f407;p=thirdparty%2Ftor.git Do not try to use -pie on windows; it appears to break badly and weirdly --- diff --git a/configure.in b/configure.in index 7167ca9366..051c924a9d 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