[Chapel Merge] dlopen: Add source files to mark if runtime is dynamic library

Branch: refs/heads/main
Revision: e1ed0f3fb654749d6cba8c5e9d90a734a9d2e566
Author: dlongnecke-cray
Link: dlopen: Add source files to mark if runtime is dynamic library by dlongnecke-cray · Pull Request #29097 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Add source files to mark if runtime is dynamic library (#29097)

This PR adjusts the runtime build script and adds two new source files.
The source files set an int to indicate whether or not the runtime was
built as a dynamic library or not. It adjusts the runtime Makefile(s) in
order to include one of the two source files as needed.

TESTING

  • standard

Reviewed by @jabraham17. Thanks much!

Compare: Comparing 642f897f955a51924dfdd33ca9a4f8eaffd04d1f...8e3967050109aa52750a7098ef05640a98ef1ae1 · chapel-lang/chapel · GitHub

Diff:
M runtime/Makefile.help
M runtime/src/Makefile
M runtime/src/Makefile.share
M runtime/src/chpl-prginfo.c
A runtime/src/chplrt-shared-build-marker.c
A runtime/src/chplrt-static-build-marker.c
A test/dynamic-loading/SharedRuntimeBuildMarker.chpl
A test/dynamic-loading/SharedRuntimeBuildMarker.compopts
A test/dynamic-loading/SharedRuntimeBuildMarker.good
A test/dynamic-loading/SharedRuntimeBuildMarker.skipif
A test/dynamic-loading/StaticRuntimeBuildMarker.chpl
A test/dynamic-loading/StaticRuntimeBuildMarker.compopts
A test/dynamic-loading/StaticRuntimeBuildMarker.good
https://github.com/chapel-lang/chapel/pull/29097.diff