summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-03-05 11:01:23 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-03-05 11:01:23 +0000
commit4ea8e80dd9b852a2d3a9e44d00e46ec31184082e (patch)
treec30be8fd991260f5aeb0981718e8fd528ac3a834
parentc07d30dcb16a1679ed42023167c0216a8ed236d0 (diff)
downloaddnsmasq-4ea8e80dd9b852a2d3a9e44d00e46ec31184082e.tar.gz
Add --static to pkg-config command when appropriate.
-rwxr-xr-xbld/pkg-wrapper5
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 || \