[libjava] --enable-symvers tweak for 52700

Submitted by Benjamin Kosnik on May 16, 2012, 11:14 p.m.

Details

Message ID 20120516161415.7a087080@adair
State New
Headers show

Commit Message

Benjamin Kosnik May 16, 2012, 11:14 p.m.
Allows use of --enable-symvers=gnu-versioned-namespace while
configuring in libjava. The rest of the target libs that use
--enable-symvers already handle this. As per libstdc++/52700.

Pretty simple, but will wait for OK for trunk/branch

tested x86/linux

trunk
4_7-branch

-benjamin

Comments

Andrew Haley May 17, 2012, 8:36 a.m.
On 05/17/2012 12:14 AM, Benjamin De Kosnik wrote:
> Allows use of --enable-symvers=gnu-versioned-namespace while
> configuring in libjava. The rest of the target libs that use
> --enable-symvers already handle this. As per libstdc++/52700.
> 
> Pretty simple, but will wait for OK for trunk/branch
> 
> tested x86/linux

OK, thanks.

Andrew.

Patch hide | download patch | download mbox

2012-05-16  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52700
	* configure.ac: Allow gnu, gnu-versioned-namespace for
	--enable-symvers arguments.
	* configure: Regenerate.


diff --git a/libjava/configure.ac b/libjava/configure.ac
index 351b2bd..62c5000 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1805,7 +1805,7 @@  AC_CACHE_CHECK([whether ld supports anonymous version scripts],
      AS_HELP_STRING([--disable-symvers],
 		    [disable symbol versioning for libjava]),
        [case "$enableval" in
-         yes) libjava_cv_anon_version_script=yes ;;
+         yes|gnu*) libjava_cv_anon_version_script=yes ;;
          no)  libjava_cv_anon_version_script=no ;;
          *)   AC_MSG_ERROR([Unknown argument to enable/disable symvers]);;
         esac],