configure.in
changeset 12390 60f322c5984f
parent 12258 231245d461a2
child 12391 ca6e41ade79a
     1.1 --- a/configure.in	Fri Nov 02 17:25:00 2018 -0700
     1.2 +++ b/configure.in	Fri Nov 02 18:07:11 2018 -0700
     1.3 @@ -232,6 +232,57 @@
     1.4  esac
     1.5  AC_MSG_RESULT($have_no_undefined)
     1.6  
     1.7 +AC_MSG_CHECKING(for linker option --dynamicbase)
     1.8 +have_dynamicbase=no
     1.9 +case "$host" in
    1.10 +    *)
    1.11 +        save_LDFLAGS="$LDFLAGS"
    1.12 +        LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
    1.13 +        AC_TRY_LINK([
    1.14 +        ],[
    1.15 +        ],[
    1.16 +        have_dynamicbase=yes
    1.17 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
    1.18 +        ])
    1.19 +        LDFLAGS="$save_LDFLAGS"
    1.20 +        ;;
    1.21 +esac
    1.22 +AC_MSG_RESULT($have_dynamicbase)
    1.23 +
    1.24 +AC_MSG_CHECKING(for linker option --nxcompat)
    1.25 +have_nxcompat=no
    1.26 +case "$host" in
    1.27 +    *)
    1.28 +        save_LDFLAGS="$LDFLAGS"
    1.29 +        LDFLAGS="$LDFLAGS -Wl,--nxcompat"
    1.30 +        AC_TRY_LINK([
    1.31 +        ],[
    1.32 +        ],[
    1.33 +        have_nxcompat=yes
    1.34 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
    1.35 +        ])
    1.36 +        LDFLAGS="$save_LDFLAGS"
    1.37 +        ;;
    1.38 +esac
    1.39 +AC_MSG_RESULT($have_nxcompat)
    1.40 +
    1.41 +AC_MSG_CHECKING(for linker option --high-entropy-va)
    1.42 +have_high_entropy_va=no
    1.43 +case "$host" in
    1.44 +    *)
    1.45 +        save_LDFLAGS="$LDFLAGS"
    1.46 +        LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
    1.47 +        AC_TRY_LINK([
    1.48 +        ],[
    1.49 +        ],[
    1.50 +        have_high_entropy_va=yes
    1.51 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
    1.52 +        ])
    1.53 +        LDFLAGS="$save_LDFLAGS"
    1.54 +        ;;
    1.55 +esac
    1.56 +AC_MSG_RESULT($have_high_entropy_va)
    1.57 +
    1.58  dnl See whether we are allowed to use the system C library
    1.59  AC_ARG_ENABLE(libc,
    1.60  AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]),