This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/19176] static gcc cannot be build (libgcc_eh.a required for static gcc)
- From: "hideishi at graduate dot chiba-u dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2004 14:37:58 -0000
- Subject: [Bug bootstrap/19176] static gcc cannot be build (libgcc_eh.a required for static gcc)
- References: <20041228143407.19176.hideishi@graduate.chiba-u.jp>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hideishi at graduate dot chiba-u dot jp 2004-12-28 14:37 -------
(In reply to comment #0)
> This is due to the bug in "gcc/config/darwin.h".
>
> 317 /* -dynamiclib implies -shared-libgcc just like -shared would on
linux. */
> 318 #define REAL_LIBGCC_SPEC \
> 319 "%{static|static-libgcc:-lgcc}\
> 320 %{!static:%{!static-libgcc:\
> 321 %{!Zdynamiclib:%{!shared-libgcc:-lgcc}\
> 322 %{shared-libgcc:-lgcc_s -lgcc}} %{Zdynamiclib:-lgcc_s -lgcc}}}"
I'm sorry. I attached my "EDITED" version of "gcc/config/darwin.h".
The original one can be viewed at
http://sources.redhat.com/cgi-bin/cvsweb.cgi/gcc/gcc/config/darwin.h?cvsroot=gcc&only_with_tag=MAIN
317 /* -dynamiclib implies -shared-libgcc just like -shared would on linux. */
318 #define REAL_LIBGCC_SPEC \
319 "%{static|static-libgcc:-lgcc -lgcc_eh}\
320 %{!static:%{!static-libgcc:\
321 %{!Zdynamiclib:%{!shared-libgcc:-lgcc -lgcc_eh}\
322 %{shared-libgcc:-lgcc_s -lgcc}} %{Zdynamiclib:-lgcc_s -lgcc}}}"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19176