Add --static to pkg-config command when appropriate.

This commit is contained in:
Simon Kelley
2014-03-05 11:01:23 +00:00
parent c07d30dcb1
commit 4ea8e80dd9

View File

@@ -14,6 +14,9 @@ if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h >/dev/null 2>&1 || \
if [ $op = "--copy" ]; then
pkg="$*"
elif grep "^\#[[:space:]]*define[[:space:]]*${search}_STATIC" config.h >/dev/null 2>&1 || \
echo $in | grep ${search}_STATIC >/dev/null 2>&1; then
pkg=`$pkg --static $op $*`
else
pkg=`$pkg $op $*`
fi