Does OpenJDK statically link the C++ runtime?

Dr Andrew John Hughes ahughes at redhat.com
Wed Jan 4 12:42:41 UTC 2012


On 10:41 Wed 04 Jan     , Andrew Haley wrote:
> On 01/04/2012 06:16 AM, John Von Seggern wrote:
> > Way back in a bug report for Java 1.4, I found this note:
> > 
> > "We statically link the C++ runtime in JDK and enabled linker script
> > to hide symbols from libstdc++ and other internal symbols."
> > --http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4694590
> > 
> > Does OpenJDK continue to take this approach?
> 
> Yes it does, but if you're using Linux be aware that most Linux
> distros patch this out, AFAIK.
> 

I'm not sure it even needs patching (though we do in IcedTea6).  Setting
STATIC_CXX=false should be enough (it defaults to true).

> Andrew.

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20120104/c2a9d035/signature.asc>


More information about the build-dev mailing list