From eb57b07a270b1f0f73792117949cf145f3101be7 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Wed, 22 Dec 2004 06:27:25 +0000 Subject: [PATCH] Not quite as flexible, but lighter and sufficient. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx-config.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.45.2