On 8/30/18 9:45 AM, Iain Sandoe wrote:
> Currently, we fail to detect some Darwin assembler capabilities because the
> configure tests rely on a BINUTILS objdump, which isn’t generally available
> on Darwin.
>
> Darwin uses a tool called "otool" to provide information about objects, and we
> should be able to extend or adapt config tests to use this.
>
> libtool already ‘knows’ about otool, we just need to teach the GCC configury.
>
> OK for trunk?
> Iain
>
> * configure.ac (NCN_STRICT_CHECK_TOOLS): Check otool.
> (ACX_CHECK_INSTALLED_TARGET_TOOL): Likewise
> (GCC_TARGET_TOOL): Likewise.
> * Makefile.tpl (HOST_EXPORTS): Add OTOOL, OTOOL_FOR_TARGET.
> (BASE_TARGET_EXPORTS): OTOOL, export OTOOL_FOR_TARGET.
> OTOOL, OTOOL_FOR_TARGET: New substitutions.
> (EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS): Add OTOOL.
> * configure: Regenerate.
> * Makefile.in: Likewise.
>
> gcc/
>
> * configure.ac (gcc_cv_otool): Set.
> * configure: Regenerate.
Ranier suggested keeping things sorted alphabetically by tool name.
With that nit fixed this is fine.
jeff