diff options
Diffstat (limited to 'bld/pkg-wrapper')
-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 || \ |