Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
build: Merge pkg-config Libs.private into Libs for static-only builds
A project being built entirely statically will call pkg-config with --static, which utilises the Libs.private field. Conversely it will not use --static when not being built entirely statically, even if there is only a static build of SDL available. This will most likely cause the build to fail due to underlinking unless we merge the Libs fields. This is what the Meson build system does when it generates pkg-config files. This also also follows the behaviour of sdl2-config. At the same time, the runtime linker flags are not applicable to static-only builds so only add them for shared builds.
- Loading branch information
Showing
with
18 additions
and 8 deletions.
- +5 −2 CMakeLists.txt
- +5 −1 configure
- +5 −1 configure.ac
- +1 −1 sdl2-config.cmake.in
- +1 −1 sdl2-config.in
- +1 −2 sdl2.pc.in