Patchwork : Support VMS in libstdc++ crossconfig.m4

login
register
mail settings
Submitter Tristan Gingold
Date March 30, 2012, 2:25 p.m.
Message ID <04B01F74-0792-43C9-BC2C-219557FBAA20@adacore.com>
Download mbox | patch
Permalink /patch/149663/
State New
Headers show

Comments

Tristan Gingold - March 30, 2012, 2:25 p.m.
Hi,

currently all VMS compilers are built on Unix.  So, to build the libstdc++ library, this looks like the minimum required.

Tested by build libstdc++ for ia64-hp-openvms.

Ok for trunk ?

Tristan.

libstdc++/
2012-03-30  Tristan Gingold  <gingold@adacore.com>

	* crossconfig.m4 (*-*-*vms*): Add.
	* configure: Regenerate.
Paolo Carlini - March 31, 2012, 12:46 a.m.
Hi,
> Hi,
>
> currently all VMS compilers are built on Unix.  So, to build the libstdc++ library, this looks like the minimum required.
>
> Tested by build libstdc++ for ia64-hp-openvms.
>
> Ok for trunk ?
I understand that without your patch a libstdc++ for ia64-hp-openvms 
cannot be build at all, and I don't see how your fix could negatively 
affect other targets, thus Ok for mainline.

Thanks,
Paolo.
Tristan Gingold - April 2, 2012, 8:05 a.m.
On Mar 31, 2012, at 2:46 AM, Paolo Carlini wrote:

> Hi,
>> Hi,
>> 
>> currently all VMS compilers are built on Unix.  So, to build the libstdc++ library, this looks like the minimum required.
>> 
>> Tested by build libstdc++ for ia64-hp-openvms.
>> 
>> Ok for trunk ?
> I understand that without your patch a libstdc++ for ia64-hp-openvms cannot be build at all, and I don't see how your fix could negatively affect other targets, thus Ok for mainline.

Thanks, committed.

Tristan.

Patch

diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index 3850879..e208fbf 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -241,6 +241,12 @@  case "${host}" in
       AC_DEFINE(HAVE_ISNANL)
     fi
     ;;
+  *-*vms*)
+    # Check for available headers.
+    # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
+    GLIBCXX_CHECK_MATH_SUPPORT
+    GLIBCXX_CHECK_STDLIB_SUPPORT
+    ;;
   *-vxworks)
     AC_DEFINE(HAVE_ACOSF)
     AC_DEFINE(HAVE_ASINF)