From 4ea8e80dd9b852a2d3a9e44d00e46ec31184082e Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 5 Mar 2014 11:01:23 +0000 Subject: Add --static to pkg-config command when appropriate. --- bld/pkg-wrapper | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bld/pkg-wrapper b/bld/pkg-wrapper index efb848a..9f9332d 100755 --- a/bld/pkg-wrapper +++ b/bld/pkg-wrapper @@ -14,8 +14,11 @@ 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 $*` + pkg=`$pkg $op $*` fi if grep "^\#[[:space:]]*define[[:space:]]*${search}_STATIC" config.h >/dev/null 2>&1 || \ -- cgit v1.2.1