diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-05 11:01:23 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-05 11:01:23 +0000 |
commit | 4ea8e80dd9b852a2d3a9e44d00e46ec31184082e (patch) | |
tree | c30be8fd991260f5aeb0981718e8fd528ac3a834 | |
parent | c07d30dcb16a1679ed42023167c0216a8ed236d0 (diff) | |
download | dnsmasq-4ea8e80dd9b852a2d3a9e44d00e46ec31184082e.tar.gz |
Add --static to pkg-config command when appropriate.
-rwxr-xr-x | bld/pkg-wrapper | 5 |
1 files changed, 4 insertions, 1 deletions
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 || \ |