RFR: 8367913: LIBDL dependency seems to be not needed for some jdk libs
Magnus Ihse Bursie
ihse at openjdk.org
Thu Sep 18 14:38:19 UTC 2025
On Thu, 18 Sep 2025 07:20:55 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> A couple of JDK native libs link to $(LIBDL) , but some do not use symbols from it.
make/modules/java.base/Lib.gmk line 165:
> 163: LDFLAGS_linux := -Wl$(COMMA)--no-as-needed, \
> 164: LDFLAGS_aix := -brtl -bexpfull, \
> 165: LIBS_linux := $(LIBDL) $(LIBM), \
I know libsyslookup is special. It is a dummy library that does not really do anything. I wonder if "pulling in libdl" is one of the things it is there for. Iirc, it is not always used either, so you need to make sure you do testing where it is actually used.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27358#discussion_r2359642913
More information about the serviceability-dev
mailing list