Currently, Boolector's build process uses the linker flag -Wl,--no-export-dynamic without checking if it is supported by the underlying compiler.
This PR adds a CMake "check" module to validate that this linker flag is supported, before using it.
Note: there is no "built-in" CMake macro for checking if a linker flag is supported. The approach taken was there recommend approach from the CMake mailing list:
Currently, Boolector's build process uses the linker flag
-Wl,--no-export-dynamic
without checking if it is supported by the underlying compiler.This PR adds a CMake "check" module to validate that this linker flag is supported, before using it.
Note: there is no "built-in" CMake macro for checking if a linker flag is supported. The approach taken was there recommend approach from the CMake mailing list:
https://cmake.org/pipermail/cmake/2011-July/045525.html