Skip to content
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

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
chewi committed Apr 11, 2020
1 parent bd7b4f3 commit 99f87a71583bb86329c7fac393819e62772efd4f

File 5 of 6 in 99f87a7

@@ -49,7 +49,7 @@ while test $# -gt 0; do
echo "${usage}" 1>&2

0 comments on commit 99f87a7

Please sign in to comment.