summaryrefslogtreecommitdiff
path: root/libmpx
diff options
context:
space:
mode:
authorienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-12 08:58:08 +0000
committerienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-12 08:58:08 +0000
commitb8470e0ac2255869f892c43ba7314dbf4fdebd4f (patch)
tree7c0e5fae6da04035973175f888bf94d100258880 /libmpx
parent923635e71a4da6a563b7c7cdab116c6e68d1bceb (diff)
libmpx/
PR other/65384 * configure.ac: Fix x32 test. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221378 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmpx')
-rw-r--r--libmpx/ChangeLog6
-rw-r--r--libmpx/configure8
-rw-r--r--libmpx/configure.ac2
3 files changed, 11 insertions, 5 deletions
diff --git a/libmpx/ChangeLog b/libmpx/ChangeLog
index ccd706b15481..35bdeab35ee3 100644
--- a/libmpx/ChangeLog
+++ b/libmpx/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR other/65384
+ * configure.ac: Fix x32 test.
+ * configure: Regenerate.
+
2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
* Makefile.am (SUBDIRS): Add mpxwrap when used
diff --git a/libmpx/configure b/libmpx/configure
index f3bd67d04438..3bbb54c29874 100644
--- a/libmpx/configure
+++ b/libmpx/configure
@@ -2498,7 +2498,7 @@ esac
unset LIBMPX_SUPPORTED
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
$as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
-echo "int isizeof (void *) == 4 ? 1 : -1 = { __x86_64__ };" > conftest.c
+echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
@@ -9438,7 +9438,7 @@ _LT_EOF
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
&& test "$tmp_diet" = no
then
- tmp_addflag=
+ tmp_addflag=' $pic_flag'
tmp_sharedflag='-shared'
case $cc_basename,$host_cpu in
pgcc*) # Portland Group C compiler
@@ -12349,8 +12349,8 @@ with_gnu_ld=$lt_cv_prog_gnu_ld
# Check if GNU C++ uses GNU ld as the underlying linker, since the
# archiving commands below assume that GNU ld is being used.
if test "$with_gnu_ld" = yes; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
diff --git a/libmpx/configure.ac b/libmpx/configure.ac
index 4669525eabdf..fe0d3f2266ea 100644
--- a/libmpx/configure.ac
+++ b/libmpx/configure.ac
@@ -28,7 +28,7 @@ GCC_LIBSTDCXX_RAW_CXX_FLAGS
# See if supported.
unset LIBMPX_SUPPORTED
AC_MSG_CHECKING([for target support for Intel MPX runtime library])
-echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
+echo "int i[[sizeof (void *) == 4 ? 1 : -1]] = { __x86_64__ };" > conftest.c
if AC_TRY_COMMAND([${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&AS_MESSAGE_LOG_FD])
then
LIBMPX_SUPPORTED=no