mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
libgfortran: PR bootstrap/48135 * configure.ac (gfortran_use_symver): Handle --disable-symvers. * configure: Regenerate. libgomp: PR bootstrap/48135 * acinclude.m4 (enable_symvers): Handle --disable-symvers. * configure: Regenerate. libjava: PR bootstrap/48135 * configure.ac (libjava_cv_anon_version_script): Handle --disable-symvers. * configure: Regenerate. libquadmath: PR bootstrap/48135 * configure.ac (quadmath_use_symver): Handle --disable-symvers. * configure: Regenerate. libssp: PR bootstrap/48135 * configure.ac (ssp_use_symver): Handle --disable-symvers. * configure: Regenerate. From-SVN: r171224
This commit is contained in:
parent
084239f467
commit
bf382f5fe4
@ -1,3 +1,9 @@
|
||||
2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR bootstrap/48135
|
||||
* configure.ac (gfortran_use_symver): Handle --disable-symvers.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
PR fortran/35667
|
||||
|
27
libgfortran/configure
vendored
27
libgfortran/configure
vendored
@ -757,6 +757,7 @@ enable_intermodule
|
||||
enable_maintainer_mode
|
||||
enable_multilib
|
||||
enable_dependency_tracking
|
||||
enable_symvers
|
||||
enable_shared
|
||||
enable_static
|
||||
with_pic
|
||||
@ -1406,6 +1407,7 @@ Optional Features:
|
||||
--enable-multilib build many library versions (default)
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--disable-symvers disable symbol versioning for libgfortran
|
||||
--enable-shared[=PKGS] build shared libraries [default=yes]
|
||||
--enable-static[=PKGS] build static libraries [default=yes]
|
||||
--enable-fast-install[=PKGS]
|
||||
@ -5564,14 +5566,22 @@ fi
|
||||
# Check for symbol versioning (copied from libssp).
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
|
||||
$as_echo_n "checking whether symbol versioning is supported... " >&6; }
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
# Check whether --enable-symvers was given.
|
||||
if test "${enable_symvers+set}" = set; then :
|
||||
enableval=$enable_symvers; gfortran_use_symver=$enableval
|
||||
else
|
||||
gfortran_use_symver=yes
|
||||
fi
|
||||
|
||||
if test "x$gfortran_use_symver" = xyes; then
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
FOO_1.0 {
|
||||
global: *foo*; bar; local: *;
|
||||
};
|
||||
EOF
|
||||
if test x$gcc_no_link = xyes; then
|
||||
if test x$gcc_no_link = xyes; then
|
||||
as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
||||
fi
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
@ -5592,7 +5602,7 @@ else
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
if test x$gfortran_use_symver = xno; then
|
||||
if test x$gfortran_use_symver = xno; then
|
||||
case "$target_os" in
|
||||
solaris2*)
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
@ -5626,8 +5636,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
|
||||
$as_echo "$gfortran_use_symver" >&6; }
|
||||
if test "x$gfortran_use_symver" != xno; then
|
||||
@ -12101,7 +12112,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12104 "configure"
|
||||
#line 12115 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -12207,7 +12218,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12210 "configure"
|
||||
#line 12221 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -144,15 +144,21 @@ AC_SUBST(CFLAGS)
|
||||
|
||||
# Check for symbol versioning (copied from libssp).
|
||||
AC_MSG_CHECKING([whether symbol versioning is supported])
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
AC_ARG_ENABLE(symvers,
|
||||
AS_HELP_STRING([--disable-symvers],
|
||||
[disable symbol versioning for libgfortran]),
|
||||
gfortran_use_symver=$enableval,
|
||||
gfortran_use_symver=yes)
|
||||
if test "x$gfortran_use_symver" = xyes; then
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
FOO_1.0 {
|
||||
global: *foo*; bar; local: *;
|
||||
};
|
||||
EOF
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[int foo;]],[[]])],[gfortran_use_symver=gnu],[gfortran_use_symver=no])
|
||||
if test x$gfortran_use_symver = xno; then
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[int foo;]],[[]])],[gfortran_use_symver=gnu],[gfortran_use_symver=no])
|
||||
if test x$gfortran_use_symver = xno; then
|
||||
case "$target_os" in
|
||||
solaris2*)
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
@ -166,8 +172,9 @@ EOF
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[int foo;]],[[]])],[gfortran_use_symver=sun],[gfortran_use_symver=no])
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
AC_MSG_RESULT($gfortran_use_symver)
|
||||
AM_CONDITIONAL(LIBGFOR_USE_SYMVER, [test "x$gfortran_use_symver" != xno])
|
||||
AM_CONDITIONAL(LIBGFOR_USE_SYMVER_GNU, [test "x$gfortran_use_symver" = xgnu])
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR bootstrap/48135
|
||||
* acinclude.m4 (enable_symvers): Handle --disable-symvers.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR fortran/47886
|
||||
|
@ -228,10 +228,13 @@ LIBGOMP_ENABLE(symvers,yes,[=STYLE],
|
||||
# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
|
||||
# don't know enough about $LD to do tricks...
|
||||
AC_REQUIRE([LIBGOMP_CHECK_LINKER_FEATURES])
|
||||
# FIXME The following test is too strict, in theory.
|
||||
if test $enable_shared = no || test "x$LD" = x; then
|
||||
|
||||
# Turn a 'yes' into a suitable default.
|
||||
if test x$enable_symvers = xyes ; then
|
||||
# FIXME The following test is too strict, in theory.
|
||||
if test $enable_shared = no || test "x$LD" = x; then
|
||||
enable_symvers=no
|
||||
else
|
||||
else
|
||||
if test $with_gnu_ld = yes ; then
|
||||
enable_symvers=gnu
|
||||
else
|
||||
@ -243,6 +246,7 @@ else
|
||||
enable_symvers=no ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if 'sun' was requested on non-Solaris 2 platforms.
|
||||
|
10
libgomp/configure
vendored
10
libgomp/configure
vendored
@ -15780,10 +15780,13 @@ fi
|
||||
# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
|
||||
# don't know enough about $LD to do tricks...
|
||||
|
||||
# FIXME The following test is too strict, in theory.
|
||||
if test $enable_shared = no || test "x$LD" = x; then
|
||||
|
||||
# Turn a 'yes' into a suitable default.
|
||||
if test x$enable_symvers = xyes ; then
|
||||
# FIXME The following test is too strict, in theory.
|
||||
if test $enable_shared = no || test "x$LD" = x; then
|
||||
enable_symvers=no
|
||||
else
|
||||
else
|
||||
if test $with_gnu_ld = yes ; then
|
||||
enable_symvers=gnu
|
||||
else
|
||||
@ -15795,6 +15798,7 @@ else
|
||||
enable_symvers=no ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if 'sun' was requested on non-Solaris 2 platforms.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR bootstrap/48135
|
||||
* configure.ac (libjava_cv_anon_version_script): Handle
|
||||
--disable-symvers.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-14 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* libjava/contrib/aot-compile.in: Add our module directory
|
||||
|
25
libjava/configure
vendored
25
libjava/configure
vendored
@ -959,6 +959,7 @@ enable_rpath
|
||||
with_libiconv_prefix
|
||||
enable_tls
|
||||
with_system_libunwind
|
||||
enable_symvers
|
||||
with_python_dir
|
||||
enable_aot_compile_rpm
|
||||
enable_java_home
|
||||
@ -1648,6 +1649,7 @@ Optional Features:
|
||||
--enable-java-gc=TYPE choose garbage collector (default is boehm)
|
||||
--disable-rpath do not hardcode runtime library paths
|
||||
--enable-tls Use thread-local storage [default=yes]
|
||||
--disable-symvers disable symbol versioning for libjava
|
||||
--enable-aot-compile-rpm
|
||||
enable installation of aot-compile-rpm [default=no]
|
||||
--enable-java-home create a standard JDK-style directory layout in the
|
||||
@ -13344,7 +13346,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 13347 "configure"
|
||||
#line 13349 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -13450,7 +13452,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 13453 "configure"
|
||||
#line 13455 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -19443,7 +19445,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then :
|
||||
enableval=$enable_sjlj_exceptions; :
|
||||
else
|
||||
cat > conftest.$ac_ext << EOF
|
||||
#line 19446 "configure"
|
||||
#line 19448 "configure"
|
||||
struct S { ~S(); };
|
||||
void bar();
|
||||
void foo()
|
||||
@ -24530,8 +24532,20 @@ $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
|
||||
if test "${libjava_cv_anon_version_script+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
# Check whether --enable-symvers was given.
|
||||
if test "${enable_symvers+set}" = set; then :
|
||||
enableval=$enable_symvers; case "$enableval" in
|
||||
yes) libjava_cv_anon_version_script=yes ;;
|
||||
no) libjava_cv_anon_version_script=no ;;
|
||||
*) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
|
||||
esac
|
||||
else
|
||||
libjava_cv_anon_version_script=yes
|
||||
|
||||
fi
|
||||
|
||||
if test x$libjava_cv_anon_version_script = xyes; then
|
||||
save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
|
||||
libjava_cv_anon_version_script=no
|
||||
CFLAGS="$CFLAGS -fPIC";
|
||||
LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
|
||||
echo '{ global: globalsymb*; local: *; };' > conftest.map
|
||||
@ -24551,6 +24565,8 @@ main ()
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
libjava_cv_anon_version_script=gnu
|
||||
else
|
||||
libjava_cv_anon_version_script=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
@ -24584,6 +24600,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
esac
|
||||
fi
|
||||
CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
|
||||
|
@ -1800,13 +1800,24 @@ GCC_CHECK_UNWIND_GETIPINFO
|
||||
# See if linker supports anonymous version scripts.
|
||||
AC_CACHE_CHECK([whether ld supports anonymous version scripts],
|
||||
[libjava_cv_anon_version_script],
|
||||
[save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
|
||||
libjava_cv_anon_version_script=no
|
||||
[AC_ARG_ENABLE(symvers,
|
||||
AS_HELP_STRING([--disable-symvers],
|
||||
[disable symbol versioning for libjava]),
|
||||
[case "$enableval" in
|
||||
yes) libjava_cv_anon_version_script=yes ;;
|
||||
no) libjava_cv_anon_version_script=no ;;
|
||||
*) AC_MSG_ERROR([Unknown argument to enable/disable symvers]);;
|
||||
esac],
|
||||
[libjava_cv_anon_version_script=yes]
|
||||
)
|
||||
if test x$libjava_cv_anon_version_script = xyes; then
|
||||
save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
|
||||
CFLAGS="$CFLAGS -fPIC";
|
||||
LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
|
||||
echo '{ global: globalsymb*; local: *; };' > conftest.map
|
||||
AC_TRY_LINK(void globalsymbol (void) {} void localsymbol (void) {},,
|
||||
[libjava_cv_anon_version_script=gnu], [])
|
||||
[libjava_cv_anon_version_script=gnu],
|
||||
[libjava_cv_anon_version_script=no])
|
||||
if test x$libjava_cv_anon_version_script = xno; then
|
||||
case "$target_os" in
|
||||
solaris2*)
|
||||
@ -1820,6 +1831,7 @@ AC_CACHE_CHECK([whether ld supports anonymous version scripts],
|
||||
esac
|
||||
fi
|
||||
CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
])
|
||||
AM_CONDITIONAL(ANONVERSCRIPT, test "$libjava_cv_anon_version_script" != no)
|
||||
AM_CONDITIONAL(ANONVERSCRIPT_GNU, test "$libjava_cv_anon_version_script" = gnu)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR bootstrap/48135
|
||||
* configure.ac (quadmath_use_symver): Handle --disable-symvers.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* printf/quadmath-printf.c (quadmath_snprintf): Make sure
|
||||
|
19
libquadmath/configure
vendored
19
libquadmath/configure
vendored
@ -747,6 +747,7 @@ with_gnu_ld
|
||||
enable_libtool_lock
|
||||
enable_maintainer_mode
|
||||
enable_multilib
|
||||
enable_symvers
|
||||
enable_generated_files_in_srcdir
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
@ -1391,6 +1392,7 @@ Optional Features:
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
(and sometimes confusing) to the casual installer
|
||||
--enable-multilib build many library versions (default)
|
||||
--disable-symvers disable symbol versioning for libquadmath
|
||||
--enable-generated-files-in-srcdir
|
||||
put copies of generated files in source dir intended
|
||||
for creating source tarballs for users without
|
||||
@ -10511,7 +10513,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10514 "configure"
|
||||
#line 10516 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -10617,7 +10619,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10620 "configure"
|
||||
#line 10622 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -12339,11 +12341,19 @@ CFLAGS="$saved_CFLAGS"
|
||||
# Check for symbol versioning (copied from libssp).
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
|
||||
$as_echo_n "checking whether symbol versioning is supported... " >&6; }
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# Check whether --enable-symvers was given.
|
||||
if test "${enable_symvers+set}" = set; then :
|
||||
enableval=$enable_symvers; quadmath_use_symver=$enableval
|
||||
else
|
||||
quadmath_use_symver=yes
|
||||
fi
|
||||
|
||||
if test "x$quadmath_use_symver" = xyes; then
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# If we cannot link, we cannot build shared libraries, so do not use
|
||||
# symbol versioning.
|
||||
quadmath_use_symver=no
|
||||
else
|
||||
else
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
@ -12408,6 +12418,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
|
||||
$as_echo "$quadmath_use_symver" >&6; }
|
||||
|
@ -164,11 +164,17 @@ CFLAGS="$saved_CFLAGS"
|
||||
|
||||
# Check for symbol versioning (copied from libssp).
|
||||
AC_MSG_CHECKING([whether symbol versioning is supported])
|
||||
if test x$gcc_no_link = xyes; then
|
||||
AC_ARG_ENABLE(symvers,
|
||||
AS_HELP_STRING([--disable-symvers],
|
||||
[disable symbol versioning for libquadmath]),
|
||||
quadmath_use_symver=$enableval,
|
||||
quadmath_use_symver=yes)
|
||||
if test "x$quadmath_use_symver" = xyes; then
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# If we cannot link, we cannot build shared libraries, so do not use
|
||||
# symbol versioning.
|
||||
quadmath_use_symver=no
|
||||
else
|
||||
else
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
@ -193,6 +199,7 @@ EOF
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT($quadmath_use_symver)
|
||||
AM_CONDITIONAL(LIBQUAD_USE_SYMVER, [test "x$quadmath_use_symver" != xno])
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR bootstrap/48135
|
||||
* configure.ac (ssp_use_symver): Handle --disable-symvers.
|
||||
* configure: Regenerate.
|
||||
|
||||
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* Makefile.in: Regenerate.
|
||||
|
19
libssp/configure
vendored
19
libssp/configure
vendored
@ -734,6 +734,7 @@ enable_version_specific_runtime_libs
|
||||
enable_maintainer_mode
|
||||
enable_multilib
|
||||
enable_dependency_tracking
|
||||
enable_symvers
|
||||
enable_shared
|
||||
enable_static
|
||||
with_pic
|
||||
@ -1372,6 +1373,7 @@ Optional Features:
|
||||
--enable-multilib build many library versions (default)
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--disable-symvers disable symbol versioning for libssp
|
||||
--enable-shared[=PKGS] build shared libraries [default=yes]
|
||||
--enable-static[=PKGS] build static libraries [default=yes]
|
||||
--enable-fast-install[=PKGS]
|
||||
@ -4098,11 +4100,19 @@ fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
|
||||
$as_echo_n "checking whether symbol versioning is supported... " >&6; }
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# Check whether --enable-symvers was given.
|
||||
if test "${enable_symvers+set}" = set; then :
|
||||
enableval=$enable_symvers; ssp_use_symver=$enableval
|
||||
else
|
||||
ssp_use_symver=yes
|
||||
fi
|
||||
|
||||
if test "x$ssp_use_symver" = xyes; then
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# If we cannot link, we cannot build shared libraries, so do not use
|
||||
# symbol versioning.
|
||||
ssp_use_symver=no
|
||||
else
|
||||
else
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
@ -4167,6 +4177,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
|
||||
$as_echo "$ssp_use_symver" >&6; }
|
||||
@ -10639,7 +10650,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10642 "configure"
|
||||
#line 10653 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -10745,7 +10756,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10748 "configure"
|
||||
#line 10759 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -72,11 +72,17 @@ if test x$ssp_hidden = xyes; then
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether symbol versioning is supported])
|
||||
if test x$gcc_no_link = xyes; then
|
||||
AC_ARG_ENABLE(symvers,
|
||||
AS_HELP_STRING([--disable-symvers],
|
||||
[disable symbol versioning for libssp]),
|
||||
ssp_use_symver=$enableval,
|
||||
ssp_use_symver=yes)
|
||||
if test "x$ssp_use_symver" = xyes; then
|
||||
if test x$gcc_no_link = xyes; then
|
||||
# If we cannot link, we cannot build shared libraries, so do not use
|
||||
# symbol versioning.
|
||||
ssp_use_symver=no
|
||||
else
|
||||
else
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
|
||||
cat > conftest.map <<EOF
|
||||
@ -101,6 +107,7 @@ EOF
|
||||
esac
|
||||
fi
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT($ssp_use_symver)
|
||||
AM_CONDITIONAL(LIBSSP_USE_SYMVER, [test "x$ssp_use_symver" != xno])
|
||||
|
Loading…
Reference in New Issue
Block a user