View | Details | Raw Unified | Return to bug 700
Collapse All | Expand All

(-)unbound-1.5.4-rga/acx_nlnetlabs.m4 (+20 lines)
 Lines 1386-1389    Link Here 
1386
#endif
1386
#endif
1387
]) ])
1387
]) ])
1388
1388
1389
dnl Check if linker supports -Wl,-z,relro,-z,now.
1390
dnl If so, adds it to LDFLAGS.
1391
AC_DEFUN([ACX_CHECK_RELRO_NOW], [
1392
    AC_ARG_ENABLE([relro_now], AS_HELP_STRING([--enable-relro-now], [Enable full relocation binding at load-time (RELRO NOW)]))
1393
    AS_IF([test "x$enable_relro_now" = "xyes"], [
1394
        AC_MSG_CHECKING([if $CC supports -Wl,-z,relro,-z,now])
1395
        BAKLDFLAGS="$LDFLAGS"
1396
        LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
1397
        AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [
1398
            if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
1399
                LDFLAGS="$BAKLDFLAGS"
1400
                AC_MSG_RESULT(no)
1401
            else
1402
                AC_MSG_RESULT(yes)
1403
            fi
1404
            rm -f conftest conftest.c conftest.o
1405
        ], [LDFLAGS="$BAKLDFLAGS" ; AC_MSG_RESULT(no)])
1406
    ])
1407
])
1408
1389
dnl End of file
1409
dnl End of file
(-)unbound-1.5.4-rga/configure.ac (+1 lines)
 Lines 246-251    Link Here 
246
		;;
246
		;;
247
esac
247
esac
248
ACX_CHECK_FLTO
248
ACX_CHECK_FLTO
249
ACX_CHECK_RELRO_NOW
249
250
250
AC_C_INLINE
251
AC_C_INLINE
251
ACX_CHECK_FORMAT_ATTRIBUTE
252
ACX_CHECK_FORMAT_ATTRIBUTE

Return to bug 700