Paul Eggert wrote:
> + [for gl_ldd in \
> + ldd \
> + 'chatr' \
> + 'dump -H' \
> + 'elfdump -Dl' \
> + 'odump -Dl' \
> + 'otool -L' \
> + :; do
> + gl_ldd_output0=`($gl_ldd conftest$ac_exeext) 2>/dev/null` && break
> + done])
This code probably won't work when cross-compiling, because it mixes
host platform and target tools.
If you use the new 'ldd' module, it
- should work also when cross-compiling,
- should be immune to changed addresses in the output of 'chatr',
'dump -H', 'elfdump -Dl', 'ldd', 'odump -Dl',
- simply feels safer to use the appropriate command for each system,
rather than trying "chatr" or "odump" on every system.
To use the 'ldd' module is simple:
- add an AC_REQUIRE([gl_LDD]),
- use
$LDDPROG conftest$ac_exeext $LDDPOSTPROC
instead of
($gl_ldd conftest$ac_exeext) 2>/dev/null
Bruno
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib