From 4248b2687054b38e79e2ab9eecf71e5b299172f4 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sat, 20 Aug 2011 13:19:33 -0400 Subject: [PATCH] On FreeBSD disable read-only relocations and immediate binding protections gcc on FreeBSD generates the following errors when the -Wl,-z,relro -Wl,-z,now flags are used: gcc: -z: linker input file unused because linking not done gcc: relro: linker input file unused because linking not done gcc: -z: linker input file unused because linking not done gcc: now: linker input file unused because linking not done --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 8af88a18..2d2b0902 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,15 @@ case "$host" in *-*-linux*) ;; *-*-freebsd*) + # disable read-only locations and immediate binding protection on FreeBSD + # due the following errors (there is probably a solution to this in another + # way, please email Michael Rash mbr.at.cipherdyne.org + # gcc: -z: linker input file unused because linking not done + # gcc: relro: linker input file unused because linking not done + # gcc: -z: linker input file unused because linking not done + # gcc: now: linker input file unused because linking not done + use_ro_relocations=no + use_immediate_binding=no if [ test "x$CPPFLAGS" = "x" ] ; then CPPFLAGS="-I/usr/local/include -I/usr/local/include/gpgme" fi