RFR: 8367913: LIBDL dependency seems to be not needed for some jdk libs [v3]
Magnus Ihse Bursie
ihse at openjdk.org
Tue Sep 23 11:43:19 UTC 2025
On Tue, 23 Sep 2025 08:10:03 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.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
>
> Add comment regarding LIBSYSLOOKUP and LIBDL
make/modules/java.base/Lib.gmk line 199:
> 197: CXXFLAGS := -std=c++17, \
> 198: DISABLED_WARNINGS_gcc := unused-variable, \
> 199: LIBS_linux := $(LIBDL) $(LIBM), \
You need to restore the libdl dependency as well, not just document why it's needed. ;-)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27358#discussion_r2372023487
More information about the serviceability-dev
mailing list