bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: [bug-gnulib] new module lib-ignore; new section bui


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES.html
Date: Thu, 12 Jan 2006 14:04:45 +0100
User-agent: KMail/1.5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]