This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [hpux] Fix build problem on hpux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: randolph at tausq dot org (Randolph Chung)
- Cc: mark dot kettenis at xs4all dot nl, gdb-patches at sources dot redhat dot com
- Date: Thu, 9 Mar 2006 19:29:01 -0500 (EST)
- Subject: Re: [hpux] Fix build problem on hpux
> Index: acinclude.m4
> ===================================================================
> RCS file: /cvs/src/src/gdb/acinclude.m4,v
> retrieving revision 1.13
> diff -u -p -r1.13 acinclude.m4
> --- acinclude.m4 17 Dec 2005 22:33:59 -0000 1.13
> +++ acinclude.m4 10 Mar 2006 00:16:44 -0000
> @@ -987,3 +987,14 @@ if test x = y ; then
> fi
> ])
>
> +AC_DEFUN(gdb_AC_HPUX,
> +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
> +AC_BEFORE([$0], [AC_TRY_RUN])dnl
> +AC_MSG_CHECKING(for HPUX)
> +AC_EGREP_CPP(yes,
> +[#ifdef _HPUX_SOURCE
> + yes
> +#endif
> +], [AC_MSG_RESULT(yes); AC_DEFINE(_XOPEN_SOURCE_EXTENDED)], AC_MSG_RESULT(no))
> +])
Did you try this with GCC 4.0.0 or later? These automatically define
_XOPEN_SOURCE_EXTENDED (libstdc++ needed it for wchar support). I'm
afraid that you might get warnings.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)