diff options
author | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 08:15:49 +0000 |
---|---|---|
committer | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 08:15:49 +0000 |
commit | 556154e8a0d6c88c0e34673fcd79a4f03f4bfb13 (patch) | |
tree | bd4f3ce6c25d8977eb5decebecb83a4ec07c4ca3 /libmpx/configure | |
parent | cb5d0a18ce433c9e3dfd0f782c0eaded09a53088 (diff) | |
download | gcc-556154e8a0d6c88c0e34673fcd79a4f03f4bfb13.tar.gz |
gcc/
PR driver/65444
* config/i386/linux-common.h (MPX_SPEC): New.
(CHKP_SPEC): Add MPX_SPEC.
* doc/invoke.texi (-fcheck-pointer-boudns): Document
possible issues with '-z bndplt' support in linker.
libmpx/
PR driver/65444
* configure.ac: Add check for '-z bndplt' support
by linker. Add link_mpx output variable.
* libmpx.spec.in (link_mpx): New.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmpx/configure')
-rw-r--r-- | libmpx/configure | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/libmpx/configure b/libmpx/configure index 3bbb54c2987..aeaa4839352 100644 --- a/libmpx/configure +++ b/libmpx/configure @@ -670,6 +670,7 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +link_mpx link_libmpx LIBMPX_SUPPORTED_FALSE LIBMPX_SUPPORTED_TRUE @@ -2523,6 +2524,25 @@ fi link_libmpx="-lpthread" +link_mpx="" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts -z bndplt" >&5 +$as_echo_n "checking whether ld accepts -z bndplt... " >&6; } +echo "int main() {};" > conftest.c +if { ac_try='${CC} ${CFLAGS} -Wl,-z,bndplt -o conftest conftest.c 1>&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + link_mpx="$link_mpx -z bndplt" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + am__api_version='1.11' @@ -11648,7 +11668,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11651 "configure" +#line 11671 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11754,7 +11774,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11757 "configure" +#line 11777 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |