From 42200c2bcbea85723c9375f20cbfc40b508e63df Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Tue, 18 Feb 2014 13:59:57 +1030 Subject: [PATCH] Fix bug in recent configure -z relro check --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index e7c877d3..fd9a38a8 100644 --- a/configure.in +++ b/configure.in @@ -129,17 +129,17 @@ AC_CHECK_LIB(nsl,callrpc,[LDFLAGS="$LDFLAGS -lnsl"]) AC_CHECK_LIB(socket,socket,[LDFLAGS="$LDFLAGS -lsocket"]) AC_CHECK_LIB(dl,dlopen,[LDFLAGS="$LDFLAGS -ldl"]) -AC_CACHE_CHECK(for -z relro option, - libc_cv_z_relro, [dnl +AC_CACHE_CHECK(linker -z relro option, libc_cv_z_relro, [dnl libc_cv_z_relro=no if AC_TRY_COMMAND([${CC-cc} -v --help 2>&1|grep "z relro" 1>&AS_MESSAGE_LOG_FD]) then if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&AS_MESSAGE_LOG_FD]) then libc_cv_z_relro=yes - LDFLAGS="$LDFLAGS -Wl,z,relro" + LDFLAGS="$LDFLAGS -Wl,-z,relro" fi - fi]) + fi +]) dnl Some platforms still seem to lack the basic single precision trig and power related function. AC_SEARCH_LIBS([sinf], [m], AC_DEFINE([HAVE_SINF], [1], [Define to 1 if you have the sinf() function.]))