This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52689] static linking with libstdc++ fails
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2012 09:46:30 +0000
- Subject: [Bug libstdc++/52689] static linking with libstdc++ fails
- Auto-submitted: auto-generated
- References: <bug-52689-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52689
--- Comment #13 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2012-04-03 09:46:30 UTC ---
> --- Comment #12 from Uros Bizjak <ubizjak at gmail dot com> 2012-04-03 08:56:13 UTC ---
> Reverting:
>
> * src/c++98/compatibility-ldbl.cc: Guard with PIC
>
> fixes the failure. Based on this, does following patch looks OK:
I need this patch
diff --git a/libstdc++-v3/src/c++98/compatibility-list.cc
b/libstdc++-v3/src/c++98/compatibility-list.cc
--- a/libstdc++-v3/src/c++98/compatibility-list.cc
+++ b/libstdc++-v3/src/c++98/compatibility-list.cc
@@ -24,8 +24,6 @@
#include <bits/move.h>
-#ifdef PIC
-
#ifndef _GLIBCXX_BEGIN_NAMESPACE_COMPAT
# define _GLIBCXX_BEGIN_NAMESPACE_COMPAT
#endif
@@ -146,5 +144,3 @@ _GLIBCXX_BEGIN_NAMESPACE_COMPAT
_GLIBCXX_END_NAMESPACE_COMPAT
} // namespace std
-
-#endif
to allow go1 to build on Solaris.
Rainer