Skip to content

Commit ff6d9a5

Browse files
Allow building with pkgconf, not just pkg-config
1 parent 79488f5 commit ff6d9a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
#!/bin/sh
2-
PKG_CONFIG_PATH=@THIRDPARTY_PKG_CONFIG_PATH@ PKG_CONFIG_LIBDIR=@THIRDPARTY_PKG_CONFIG_LIBDIR@ pkg-config --static "$@"
2+
STATIC=
3+
if test "$#" -ne 1 || test "$1" != "--version"
4+
then
5+
STATIC="--static"
6+
fi
7+
PKG_CONFIG_PATH=@THIRDPARTY_PKG_CONFIG_PATH@ PKG_CONFIG_LIBDIR=@THIRDPARTY_PKG_CONFIG_LIBDIR@ pkg-config $STATIC "$@"
8+

0 commit comments

Comments
 (0)