]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: break all the way out when a good nm is found
authorPeter Rosin <peda@lysator.liu.se>
Sun, 28 Apr 2013 07:16:56 +0000 (09:16 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Sun, 28 Apr 2013 07:16:56 +0000 (09:16 +0200)
commita4629ebff263dcb2e05feb9e41df649ea5ce3f78
tree7f7b83987f2270179dd01faa954e14c16bbad470
parent68920ef8353f71c2e6c5c6b57a26cf55c0cff318
libtool: break all the way out when a good nm is found

The current code tries to locate a compatible nm tool.  It starts with
a prefixed nm tool (great!) and includes a plain nm too (that's fine).
The problem is that the code searches for the prefixed nm before the
plain nm (normally fine), but doesn't break once it has found a valid
match, and the plain nm ends up the winner.

Report and analysis by Mike Frysinger.

* m4/libtool.m4 (LT_PATH_NM): Break all the way out on a good match.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
m4/libtool.m4