Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
fae7f96e
Commit
fae7f96e
authored
Sep 13, 2018
by
Nick Mathewson
👁
Browse files
Explain PIE/PIC rationale for 23846.
parent
eaf7d168
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
fae7f96e
...
...
@@ -1164,8 +1164,12 @@ m4_ifdef([AS_VAR_IF],[
TOR_CHECK_CFLAGS(--param ssp-buffer-size=1)
if test "$bwin32" = "false" && test "$enable_libfuzzer" != "yes" && test "$enable_oss_fuzz" != "yes"; then
if test "$enable_pic" != "yes"; then
# If we have already enabled -fPIC, then we don't also need to
# compile with -fPIE...
TOR_CHECK_CFLAGS(-fPIE)
fi
# ... but we want to link our executables with -pie in any case, since
# they're executables, not a library.
TOR_CHECK_LDFLAGS(-pie, "$all_ldflags_for_check", "$all_libs_for_check")
fi
TOR_TRY_COMPILE_WITH_CFLAGS(-fwrapv, also_link, CFLAGS_FWRAPV="-fwrapv", true)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment