Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add note about -fPIE in linker checks

  • Loading branch information...
commit 9bcd2830533ccde8e215946c4c8c0feee92dc0ba 1 parent 3985b30
@kmcallister authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  configure.ac
View
2  configure.ac
@@ -54,6 +54,8 @@ AS_IF([test x"$hardening" != x"no"], [
[], [-fstack-protector-all])])])
# At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
+ #
+ # The linker checks also compile code, so we need to include -fPIE as well.
check_cc_cxx_flag([-fPIE],
[check_link_flag([-fPIE -pie],
[HARDEN_CFLAGS="$HARDEN_CFLAGS -fPIE"
Please sign in to comment.
Something went wrong with that request. Please try again.