building static libgcj

Ranjit Mathew rmathew@hotmail.com
Wed Jul 16 15:24:00 GMT 2003


Jeff Sturm wrote:
>>The other binaries like gcc, gcj, gcjh etc... are statically linked.
> 
> 
> To be pedantic for a moment, a 'static binary' does not link to any DSO,
> not system libraries such as libc.so or any other.  GCC does not produce
> these even if configured with --disable-shared.  However that option
> suppresses any shared libraries that GCC would build on its own
> (libgcj.so, libgcc_s.so, libstdc++.so).

Simply put, "--disable-shared" does not mean that the GCC
*executables* that are produced will be statically linked - it
merely means that the *libraries* built by GCC (libgcc, libgcj,
etc.) will be static libraries instead of dynamic libraries.

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/




More information about the Java mailing list