Fix for -library-preload flag
Adds a C macro PETSC_LIB_EXT
, and uses it when -library-preload
flag is passed.
Also adds a test for this case. The new test might not be needed anymore once https://gitlab.com/petsc/petsc/-/issues/1517 will be fixed.
I have manually compiled and run the new test to confirm this works: will the new test be run on debci
? How can I trigger autopkgtest
locally?