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

(-)unbound-1.5.4-rga/acx_nlnetlabs.m4 (+22 lines)
 Lines 1386-1389    Link Here 
1386
#endif
1386
#endif
1387
]) ])
1387
]) ])
1388
1388
1389
dnl Check if CC and linker support -fPIE and -pie.
1390
dnl If so, sets them in CFLAGS / LDFLAGS.
1391
AC_DEFUN([ACX_CHECK_PIE], [
1392
    AC_ARG_ENABLE([pie], AS_HELP_STRING([--enable-pie], [Enable Position-Independent Executable]))
1393
    AS_IF([test "x$enable_pie" = "xyes"], [
1394
        AC_MSG_CHECKING([if $CC supports PIE])
1395
        BAKLDFLAGS="$LDFLAGS"
1396
        BAKCFLAGS="$CFLAGS"
1397
        LDFLAGS="$LDFLAGS -pie"
1398
        CFLAGS="$CFLAGS -fPIE"
1399
        AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [
1400
            if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
1401
                LDFLAGS="$BAKLDFLAGS"
1402
                AC_MSG_RESULT(no)
1403
            else
1404
                AC_MSG_RESULT(yes)
1405
            fi
1406
            rm -f conftest conftest.c conftest.o
1407
        ], [LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; AC_MSG_RESULT(no)])
1408
    ])
1409
])
1410
1389
dnl End of file
1411
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_PIE
249
250
250
AC_C_INLINE
251
AC_C_INLINE
251
ACX_CHECK_FORMAT_ATTRIBUTE
252
ACX_CHECK_FORMAT_ATTRIBUTE

Return to bug 699