Commit f8ae0b2a by Balaji V. Iyer Committed by Balaji V. Iyer

Makefile.am (libcilkrts_la_LDFLAGS): Added a check for availability of "-ldl" flag.

2013-11-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * Makefile.am (libcilkrts_la_LDFLAGS): Added a check for availability
        of "-ldl" flag.
        * configure.ac: Likewise.
        * configure: Regenerate
        * Makefile.in: Likewise.

From-SVN: r204723
parent 115d1851
2013-11-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
* Makefile.am (libcilkrts_la_LDFLAGS): Added a check for availability
of "-ldl" flag.
* configure.ac: Likewise.
* configure: Regenerate
* Makefile.in: Likewise.
2013-11-08 Balaji V. Iyer <balaji.v.iyer@intel.com> 2013-11-08 Balaji V. Iyer <balaji.v.iyer@intel.com>
PR c/59039 PR c/59039
......
...@@ -91,7 +91,7 @@ include include/internal/rev.mk ...@@ -91,7 +91,7 @@ include include/internal/rev.mk
#libcilkrts_la_LDFLAGS = -rpath '$(libdir)' #libcilkrts_la_LDFLAGS = -rpath '$(libdir)'
libcilkrts_la_LDFLAGS = -version-info 5:0:0 libcilkrts_la_LDFLAGS = -version-info 5:0:0
libcilkrts_la_LDFLAGS += -lpthread -ldl libcilkrts_la_LDFLAGS += -lpthread @lt_cv_dlopen_libs@
# If we're building on Linux, use the Linux version script # If we're building on Linux, use the Linux version script
if LINUX_LINKER_SCRIPT if LINUX_LINKER_SCRIPT
......
...@@ -312,6 +312,7 @@ libdir = @libdir@ ...@@ -312,6 +312,7 @@ libdir = @libdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@
localedir = @localedir@ localedir = @localedir@
localstatedir = @localstatedir@ localstatedir = @localstatedir@
lt_cv_dlopen_libs = @lt_cv_dlopen_libs@
mandir = @mandir@ mandir = @mandir@
mkdir_p = @mkdir_p@ mkdir_p = @mkdir_p@
multi_basedir = @multi_basedir@ multi_basedir = @multi_basedir@
...@@ -395,8 +396,9 @@ CILK_REVISION = 3902 ...@@ -395,8 +396,9 @@ CILK_REVISION = 3902
#libcilkrts_la_LDFLAGS = -rpath '$(libdir)' #libcilkrts_la_LDFLAGS = -rpath '$(libdir)'
# Hack for Cygwin # Hack for Cygwin
libcilkrts_la_LDFLAGS = -version-info 5:0:0 -lpthread -ldl \ libcilkrts_la_LDFLAGS = -version-info 5:0:0 -lpthread \
$(am__append_1) $(am__append_2) -no-undefined @lt_cv_dlopen_libs@ $(am__append_1) $(am__append_2) \
-no-undefined
# C/C++ header files for Cilk. # C/C++ header files for Cilk.
cilkincludedir = $(includedir)/cilk cilkincludedir = $(includedir)/cilk
......
...@@ -604,6 +604,7 @@ ac_subst_vars='am__EXEEXT_FALSE ...@@ -604,6 +604,7 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE am__EXEEXT_TRUE
LTLIBOBJS LTLIBOBJS
LIBOBJS LIBOBJS
lt_cv_dlopen_libs
toolexeclibdir toolexeclibdir
toolexecdir toolexecdir
CXXCPP CXXCPP
...@@ -4982,6 +4983,10 @@ else ...@@ -4982,6 +4983,10 @@ else
fi fi
enable_dlopen=yes
case `pwd` in case `pwd` in
*\ * | *\ *) *\ * | *\ *)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
...@@ -7587,8 +7592,6 @@ done ...@@ -7587,8 +7592,6 @@ done
enable_dlopen=no
enable_win32_dll=no enable_win32_dll=no
...@@ -11057,7 +11060,7 @@ else ...@@ -11057,7 +11060,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 11060 "configure" #line 11063 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -11163,7 +11166,7 @@ else ...@@ -11163,7 +11166,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 11166 "configure" #line 11169 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -14419,6 +14422,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -14419,6 +14422,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Must be last # Must be last
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure
......
...@@ -146,9 +146,12 @@ case "${host}" in ...@@ -146,9 +146,12 @@ case "${host}" in
esac esac
AM_CONDITIONAL(MAC_LINKER_SCRIPT, test "$mac_linker_script" = "yes") AM_CONDITIONAL(MAC_LINKER_SCRIPT, test "$mac_linker_script" = "yes")
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
AC_SUBST(toolexecdir) AC_SUBST(toolexecdir)
AC_SUBST(toolexeclibdir) AC_SUBST(toolexeclibdir)
AC_SUBST(lt_cv_dlopen_libs)
# Must be last # Must be last
AC_OUTPUT AC_OUTPUT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment