RFR: 8351322: Parameterize link option for pthreads
snake66
duke at openjdk.org
Thu Mar 6 17:21:01 UTC 2025
On Thu, 6 Mar 2025 13:53:31 GMT, Antonio Vieiro <duke at openjdk.org> wrote:
>> Replace hardcoded instances of `-lpthread` with `$(LIBPTHREAD)`, so that it's possible to parameterize this for platforms that use different flags for enabling posix threads.
>>
>> This work is a continuation of the work done by Greg Lewis in [1], but generalized for the full JDK, and set at the configure stage.
>>
>> Sponsored by: The FreeBSD Foundation
>> Co-authored-by: Greg Lewis <glewis at eyesbeyond.com>
>>
>> [1]: https://github.com/battleblow/jdk23u/commit/dbd90aa8ab0b7f5e4865864a7c63d975daacabf4
>
> make/test/JtregNativeHotspot.gmk line 886:
>
>> 884: BUILD_HOTSPOT_JTREG_LIBRARIES_JDK_LIBS_libnativeStack := java.base:libjvm
>> 885: else
>> 886: BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libbootclssearch_agent += $(LIBPTREAD)
>
> Hi. Should this read `$(LIBPTHREAD)` instead (i.e., missing `H`)?
> Could be me too, I need new reading glasses...
@vieiro Thanks! That's well spotted, I'll fix!
@magicus Thanks for this info! I'll give it a try without fixing the typo first, to see if it would catch it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23930#discussion_r1983764371
More information about the build-dev
mailing list