]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac (plugin -rdynamic test): Log result.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 9 Apr 2010 17:35:18 +0000 (17:35 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 9 Apr 2010 17:35:18 +0000 (17:35 +0000)
* 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

gcc/ChangeLog
gcc/config/sol2-gld.h
gcc/config/sol2.h
gcc/configure
gcc/configure.ac

index a822b36ac02d761a982e1b9636f70536fdd72406..6c3d71a768dc5e1c632270121eaa519bf637ef20 100644 (file)
@@ -1,3 +1,11 @@
+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.
index 217e09259f6bedfd46d9853541c8ddd54d771bc4..cf020f9c13942fc3dbf298a2c4267305ae207564 100644 (file)
@@ -25,3 +25,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef SUPPORTS_INIT_PRIORITY
 #define SUPPORTS_INIT_PRIORITY 1
+
+/* GNU ld needs --export-dynamic to implement -rdynamic.  */
+#undef RDYNAMIC_SPEC
+#define RDYNAMIC_SPEC "--export-dynamic"
index 8f24bc745f30fceb5d012abae4d92d5a45967cd2..98e54e6a92c734aacba67d9b81041a88bbc4d119 100644 (file)
@@ -174,12 +174,16 @@ along with GCC; see the file COPYING3.  If not see
 #define LINK_SPEC \
   "%{h*} %{v:-V} \
    %{b} \
+   %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
    %{static:-dn -Bstatic} \
    %{shared:-G -dy %{!mimpure-text:-z text}} \
    %{symbolic:-Bsymbolic -G -dy -z text} \
    %(link_arch) \
    %{Qy:} %{!Qn:-Qy}"
 
+/* With Sun ld, -rdynamic is a no-op.  */
+#define RDYNAMIC_SPEC ""
+
 /* The Solaris linker doesn't understand constructor priorities.  (The
    GNU linker does support constructor priorities, so GNU ld
    configuration files for Solaris override this setting.)  */
index 888fc9418a642112e48d76e0ac1ce3b6ca178282..e32454a1e72a31494c0fad7da83cbee93c0d6f1d 100755 (executable)
@@ -25234,10 +25234,14 @@ $as_echo_n "checking for exported symbols... " >&6; }
 $as_echo_n "checking for -rdynamic... " >&6; }
     ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
     if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+      plugin_rdynamic=yes
       pluginlibs="-rdynamic"
     else
+      plugin_rdynamic=no
       enable_plugin=no
     fi
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
+$as_echo "$plugin_rdynamic" >&6; }
   fi
 
   # Check -ldl
index abf03c5b31f4914905316201073a1f1a5bd32dd8..2d7823435f4e958524a9a0eb4454101701d8a42f 100644 (file)
@@ -4449,10 +4449,13 @@ if test x"$enable_plugin" = x"yes"; then
     AC_MSG_CHECKING([for -rdynamic])
     ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
     if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+      plugin_rdynamic=yes
       pluginlibs="-rdynamic"
     else
+      plugin_rdynamic=no
       enable_plugin=no
     fi
+    AC_MSG_RESULT([$plugin_rdynamic])
   fi
 
   # Check -ldl