Does OpenJDK statically link the C++ runtime?
John Von Seggern
vonseg at gmail.com
Thu Jan 5 01:36:49 UTC 2012
Volker, Andrew, and Andrew,
Thanks for the information. (In case it's useful to anyone in the
future, I've updated my original stackoverflow question with
everyone's answers.)
Thanks again,
-John
On Wed, Jan 4, 2012 at 7:42 AM, Dr Andrew John Hughes
<ahughes at redhat.com> wrote:
> 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
More information about the build-dev
mailing list