Does OpenJDK statically link the C++ runtime?

Fredrik Öhrström fredrik.ohrstrom at oracle.com
Mon Jan 16 16:17:00 UTC 2012


2012-01-05 03:03, Dr Andrew John Hughes skrev:

>Hence, it is in the provider's interest to make that blob compatible with
>as many systems as possible. This is done by statically linking libraries
>and is also the reason you'll find copies of system libraries
>(libpng, libjpeg, zlib, lcms) in the OpenJDK tree as well as libraries
like Gtk+
>(for the look and feel) being opened dynamically.

The configure script in build-infra/jdk7 has the option:
  --disable-static-link-stdc++
                Disable static linking to the c++ runtime on linux.

I also intend to support --enable-external-libpng etc

//Fredrik



More information about the build-dev mailing list