On Thu, 18 Sep 2025 07:20:55 GMT, Matthias Baesken <[email protected]> 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

Reply via email to