Commit fcf52686 by Rainer Orth Committed by Rainer Orth

configure.ac (plugin -rdynamic test): Log result.

	* configure.ac (plugin -rdynamic test): Log result.
	* configure: Regenerate.
	* config/sol2.h (LINK_SPEC): Handle -rdynamic.
	(RDYNAMIC_SPEC): Define.
	* config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.

From-SVN: r158173
parent 55c4f715
2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac (plugin -rdynamic test): Log result.
* configure: Regenerate.
* config/sol2.h (LINK_SPEC): Handle -rdynamic.
(RDYNAMIC_SPEC): Define.
* config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac: Determine Sun ld version numbers. * configure.ac: Determine Sun ld version numbers.
(comdat_group): Restrict GNU ld version checks to gld. (comdat_group): Restrict GNU ld version checks to gld.
(comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688. (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
......
...@@ -25,3 +25,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -25,3 +25,7 @@ along with GCC; see the file COPYING3. If not see
#undef SUPPORTS_INIT_PRIORITY #undef SUPPORTS_INIT_PRIORITY
#define SUPPORTS_INIT_PRIORITY 1 #define SUPPORTS_INIT_PRIORITY 1
/* GNU ld needs --export-dynamic to implement -rdynamic. */
#undef RDYNAMIC_SPEC
#define RDYNAMIC_SPEC "--export-dynamic"
...@@ -174,12 +174,16 @@ along with GCC; see the file COPYING3. If not see ...@@ -174,12 +174,16 @@ along with GCC; see the file COPYING3. If not see
#define LINK_SPEC \ #define LINK_SPEC \
"%{h*} %{v:-V} \ "%{h*} %{v:-V} \
%{b} \ %{b} \
%{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
%{static:-dn -Bstatic} \ %{static:-dn -Bstatic} \
%{shared:-G -dy %{!mimpure-text:-z text}} \ %{shared:-G -dy %{!mimpure-text:-z text}} \
%{symbolic:-Bsymbolic -G -dy -z text} \ %{symbolic:-Bsymbolic -G -dy -z text} \
%(link_arch) \ %(link_arch) \
%{Qy:} %{!Qn:-Qy}" %{Qy:} %{!Qn:-Qy}"
/* With Sun ld, -rdynamic is a no-op. */
#define RDYNAMIC_SPEC ""
/* The Solaris linker doesn't understand constructor priorities. (The /* The Solaris linker doesn't understand constructor priorities. (The
GNU linker does support constructor priorities, so GNU ld GNU linker does support constructor priorities, so GNU ld
configuration files for Solaris override this setting.) */ configuration files for Solaris override this setting.) */
......
...@@ -25234,10 +25234,14 @@ $as_echo_n "checking for exported symbols... " >&6; } ...@@ -25234,10 +25234,14 @@ $as_echo_n "checking for exported symbols... " >&6; }
$as_echo_n "checking for -rdynamic... " >&6; } $as_echo_n "checking for -rdynamic... " >&6; }
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
plugin_rdynamic=yes
pluginlibs="-rdynamic" pluginlibs="-rdynamic"
else else
plugin_rdynamic=no
enable_plugin=no enable_plugin=no
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
$as_echo "$plugin_rdynamic" >&6; }
fi fi
# Check -ldl # Check -ldl
......
...@@ -4449,10 +4449,13 @@ if test x"$enable_plugin" = x"yes"; then ...@@ -4449,10 +4449,13 @@ if test x"$enable_plugin" = x"yes"; then
AC_MSG_CHECKING([for -rdynamic]) AC_MSG_CHECKING([for -rdynamic])
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
plugin_rdynamic=yes
pluginlibs="-rdynamic" pluginlibs="-rdynamic"
else else
plugin_rdynamic=no
enable_plugin=no enable_plugin=no
fi fi
AC_MSG_RESULT([$plugin_rdynamic])
fi fi
# Check -ldl # Check -ldl
......
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