diff mbox

[committed] Fix libstdc++/69446

Message ID 437FFEA3-221F-4B8E-91A3-3007CE7265E5@bell.net
State New
Headers show

Commit Message

John David Anglin Jan. 23, 2016, 10:30 p.m. UTC
_GLIBCXX_USE_WEAK_REF needs to be defined to 0 to fix build error.

Tested on hppa2.0w-hp-hpux11.11.

Dave
--
John David Anglin	dave.anglin@bell.net
2016-01-23  John David Anglin  <danglin@gcc.gnu.org>

	PR libstdc++/69446
	* config/os/hpux/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
diff mbox

Patch

Index: config/os/hpux/os_defines.h
===================================================================
--- config/os/hpux/os_defines.h	(revision 232766)
+++ config/os/hpux/os_defines.h	(working copy)
@@ -99,6 +99,9 @@ 
    to null pointers when weak symbol support is on.  */
 #define _GLIBCXX_GTHREAD_USE_WEAK 0
 
+// No support for referencing weak symbols without a definition.
+#define _GLIBCXX_USE_WEAK_REF 0
+
 // The strtold function is obsolete and not C99 conformant on PA HP-UX.
 // It returns plus or minus _LDBL_MAX instead of plus or minus HUGE_VALL
 // if the correct value would cause overflow.  It doesn't handle "inf",