This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/14704] New: -static-libgcc option appears non-functional under Solaris
- From: "stian at mail dot utexas dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2004 02:33:52 -0000
- Subject: [Bug other/14704] New: -static-libgcc option appears non-functional under Solaris
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I have attempted to build several readily available open source packages (among
them zlib 1.2.1 and OpenSSL 0.9.7d) with the -static-libgcc option passed to
gcc, in order to avoid the dependency on libgcc_s.so.1 and the problems it can
cause.
GCC accepts this argument, but appears to ignore it silently, as ldd still shows
the libgcc_s dependency in any binary (be it a library or an executable) built
by gcc that had this dependency prior to supplying the -static-libgcc option.
The test machine is running Solaris 9 (SunOS 5.9), patch level 112233-08, on an
UltraSPARC IIe. The compiler used is the gcc 3.3.2 package for Solaris 9 from
http://www.sunfreeware.com/. I have not yet attempted to build gcc 3.3.3 from
source, but I can find no mention of this in the changelog. I also cannot find
an existing bug report for this.
I am not a compiler expert, so if I have left out any information vital to
reproducing this problem, please email me. I will do my best to provide any
required information, and I can also supply a login on a Solaris 9 machine for
debugging purposes.
--
Summary: -static-libgcc option appears non-functional under
Solaris
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stian at mail dot utexas dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14704