]> git.saurik.com Git - wxWidgets.git/commitdiff
Not quite as flexible, but lighter and sufficient.
authorRon Lee <ron@debian.org>
Wed, 22 Dec 2004 06:27:25 +0000 (06:27 +0000)
committerRon Lee <ron@debian.org>
Wed, 22 Dec 2004 06:27:25 +0000 (06:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 9d60a461ce3ea2b5395bc6ca4b25f670813236be..fce6327511b0275be8414d639a4258c484a0ecf2 100755 (executable)
@@ -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