X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3838e2d36ee9320b6d432b9a7aa75a8092024daa..36d23121977b85dc63c1535a64df88b41a81241b:/wx-config.in diff --git a/wx-config.in b/wx-config.in index 9d60a461ce..fce6327511 100755 --- a/wx-config.in +++ b/wx-config.in @@ -1006,11 +1006,10 @@ lib_flags_for() # will let the more heinous bugs in configure shake out. # We should maybe filter *.a here too, but not unless # we have to. - if echo "$f" | grep ^-l > /dev/null 2>&1 ; then - _all_libs="$(remove_field $f $_all_libs) $f" - else - _all_libs="$_all_libs $f" - fi + case "$f" in + -l*) _all_libs="$(remove_field $f $_all_libs) $f" ;; + *) _all_libs="$_all_libs $f" ;; + esac done else