Leveraging objdump extensions for better autoconf cross-compilation support?
Andreas Schwab
schwab@suse.de
Mon Oct 16 07:36:00 GMT 2017
On Okt 15 2017, Philip Prindeville <philipp_subx@redfish-solutions.com> wrote:
> Youâd have things like:
>
> #include <stdio.h>
>
> int main(int argc, char *argv[])
> {
> printf(âsizeof long=%u\nâ, sizeof(long));
> exit(0);
> }
>
> or whatever being compiled and run.
>
> What if you could get by with:
>
> const unsigned size_long = sizeof(long);
autoconf already has a standard macro for these kind of tests,
AC_CHECK_SIZEOF, which is cross-friendly.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list