public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/12250] New: --disable-shared disables too much
@ 2003-09-11 14:50 bim2003 at basistech dot com
  2003-09-11 15:25 ` [Bug libstdc++/12250] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bim2003 at basistech dot com @ 2003-09-11 14:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250

           Summary: --disable-shared disables too much
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bim2003 at basistech dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8

My goal is to build a copy of gcc where (a) there are no shared libs produced 
for libstdc++ (or other) components, but (b) it is possible to use the results 
to build shared libraries. This requires the production of a libstdc++.a that 
is compiled PIC on solaris. --disable-shared resulted in a libstdc++ that is 
not compiled pic, and so can't be linked with a shared lib.

If I've missed something in the configure doc that explains how to accomplish 
this, I apologize.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
@ 2003-09-11 15:25 ` pinskia at gcc dot gnu dot org
  2003-09-11 15:39 ` bim2003 at basistech dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-11 15:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-11 15:22 -------
Not really bug as --disable-shared disables the building the shared libraries which are the PIC 
ones (on most targets that is, except for where PIC is default like *-*-darwin*).  
>From <http://gcc.gnu.org/install/configure.html>:
Use --disable-shared to build only static libraries.

Which means not shared library versions.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
  2003-09-11 15:25 ` [Bug libstdc++/12250] " pinskia at gcc dot gnu dot org
@ 2003-09-11 15:39 ` bim2003 at basistech dot com
  2003-09-11 15:45 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bim2003 at basistech dot com @ 2003-09-11 15:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250


bim2003 at basistech dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


------- Additional Comments From bim2003 at basistech dot com  2003-09-11 15:39 -------
On Solaris, there is a sort of tri-state logic. You can build any of:

(1) a .a file containing files compiled -fPIC
(2) a .a file containing files not compiled -fPIC
(3) a .so file.

There are good reasons to want #1, and, as a result, for about 10 years people 
working on Solaris have built these things.

In my case, I want to make binaries that are self-contained and don't depend on 
a libstdc++.so. On the other hand, I want some of those binaries to be, 
themselves, shared libraries. This requires a libstdc++.a that contains .o 
files created with -fPIC.

On Intel, this doesn't come up, because -PIC is optional, and so the 
standard .a that results from a --disable-shared configuration can be used as 
part of the build of a shared library. On sparc, some people I know just always 
build with PIC, and some build two different archives.

I hope it isn't rude to repopen. If I still haven't convinced you, I'm not 
planning to be a pest.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
  2003-09-11 15:25 ` [Bug libstdc++/12250] " pinskia at gcc dot gnu dot org
  2003-09-11 15:39 ` bim2003 at basistech dot com
@ 2003-09-11 15:45 ` pinskia at gcc dot gnu dot org
  2003-09-11 17:57 ` bangerth at dealii dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-11 15:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-11 15:45 -------
Actually it is tri-state on many targets


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (2 preceding siblings ...)
  2003-09-11 15:45 ` pinskia at gcc dot gnu dot org
@ 2003-09-11 17:57 ` bangerth at dealii dot org
  2003-09-12 15:08 ` aoliva at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-09-11 17:57 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


------- Additional Comments From bangerth at dealii dot org  2003-09-11 17:57 -------
I think we should leave this to the libstdc++ maintainers. They know how
difficult something like this would be, and whether they would be willing
to maintain it.
W.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (3 preceding siblings ...)
  2003-09-11 17:57 ` bangerth at dealii dot org
@ 2003-09-12 15:08 ` aoliva at gcc dot gnu dot org
  2003-09-17 20:21 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2003-09-12 15:08 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250



------- Additional Comments From aoliva at gcc dot gnu dot org  2003-09-12 14:58 -------
--with-pic should get libtool to compile PIC for static libraries as well


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (4 preceding siblings ...)
  2003-09-12 15:08 ` aoliva at gcc dot gnu dot org
@ 2003-09-17 20:21 ` bkoz at gcc dot gnu dot org
  2003-09-17 20:37 ` bim2003 at basistech dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2003-09-17 20:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250



------- Additional Comments From bkoz at gcc dot gnu dot org  2003-09-17 19:37 -------

... what Alexandre said, but other options include.

make CXXFLAGS='-fPIC' target-libstdc++-v3

or

configuring with (from http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html)

./configure --enable-cxx-flags='-fPIC'

etc etc. 

Can we close this?
-benjamin


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (5 preceding siblings ...)
  2003-09-17 20:21 ` bkoz at gcc dot gnu dot org
@ 2003-09-17 20:37 ` bim2003 at basistech dot com
  2003-09-17 20:52 ` pinskia at gcc dot gnu dot org
  2003-09-18  4:39 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: bim2003 at basistech dot com @ 2003-09-17 20:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250



------- Additional Comments From bim2003 at basistech dot com  2003-09-17 19:39 -------
If you make configure --help mention --with-pic, then you'll never have to 
take another report like this again. ;-)

Sure, close it.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (6 preceding siblings ...)
  2003-09-17 20:37 ` bim2003 at basistech dot com
@ 2003-09-17 20:52 ` pinskia at gcc dot gnu dot org
  2003-09-18  4:39 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-17 20:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-17 19:41 -------
Closing as per reporter.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/12250] --disable-shared disables too much
  2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
                   ` (7 preceding siblings ...)
  2003-09-17 20:52 ` pinskia at gcc dot gnu dot org
@ 2003-09-18  4:39 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2003-09-18  4:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12250



------- Additional Comments From aoliva at gcc dot gnu dot org  2003-09-18 03:32 -------
FWIW, libstdc++-v3/configure --help does show --with-pic as one of the options.
 top-level configure doesn't show all available options for all available
sub-projects, and it would b e tricky to arrange for it to do so.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-18  3:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 14:50 [Bug libstdc++/12250] New: --disable-shared disables too much bim2003 at basistech dot com
2003-09-11 15:25 ` [Bug libstdc++/12250] " pinskia at gcc dot gnu dot org
2003-09-11 15:39 ` bim2003 at basistech dot com
2003-09-11 15:45 ` pinskia at gcc dot gnu dot org
2003-09-11 17:57 ` bangerth at dealii dot org
2003-09-12 15:08 ` aoliva at gcc dot gnu dot org
2003-09-17 20:21 ` bkoz at gcc dot gnu dot org
2003-09-17 20:37 ` bim2003 at basistech dot com
2003-09-17 20:52 ` pinskia at gcc dot gnu dot org
2003-09-18  4:39 ` aoliva at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).