[Bug libcc1/67128] Makefile.in, libcc1 and --enable-shared

2022-01-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

--- Comment #9 from Jonathan Wakely  ---
(In reply to Szőts Ákos from comment #3)
> Option "--with-pic" doesn't work, but the suggested workaround in the
> original post does.

I think using --disable-shared --with-pic *should* work, but it doesn't because
of PR 58638.

[Bug libcc1/67128] Makefile.in, libcc1 and --enable-shared

2022-01-09 Thread tromey at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

--- Comment #8 from Tom Tromey  ---
*** Bug 96240 has been marked as a duplicate of this bug. ***

[Bug libcc1/67128] Makefile.in, libcc1 and --enable-shared

2022-01-09 Thread tromey at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

Tom Tromey  changed:

   What|Removed |Added

 CC||skunk at iskunk dot org

--- Comment #7 from Tom Tromey  ---
*** Bug 66955 has been marked as a duplicate of this bug. ***

[Bug libcc1/67128] Makefile.in, libcc1 and --enable-shared

2022-01-09 Thread tromey at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

Tom Tromey  changed:

   What|Removed |Added

 CC||570070308 at qq dot com

--- Comment #6 from Tom Tromey  ---
*** Bug 96240 has been marked as a duplicate of this bug. ***

[Bug libcc1/67128] Makefile.in, libcc1 and --enable-shared

2022-01-09 Thread tromey at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67128

Tom Tromey  changed:

   What|Removed |Added

 CC||tromey at gcc dot gnu.org

--- Comment #5 from Tom Tromey  ---
I don't think it really makes sense to build libcc1 as a static library.
It is a gcc plugin and so has to be available for dlopen.  That's the
only way it can be used.
So I guess if you really want --disable-shared then you ought to do
as suggested in comment #3 and --disable-libcc1 as well.