[re-adding bug-autoconf to cc]

On Fri, Apr 25, 2025 at 08:21:58AM -0700, Alan Snyder wrote:
> I tried your suggestion (both with and without CFLAGS being set):
> 
> ./configure --build=x86_64-apple-macos10.10 --host=x86_64-apple-macos10.10 
> --enable-shared

The build machine architecture is aarch64 right?  Not x86_64.

> and got the same results in the config.log.

This is expected, because you specified the same triplet for both
--build and --host.

> Apparently, specifying —build is not sufficient to enter cross
> compiling mode, as configure still runs the test program which does
> not fail and as a result it incorrectly deduces that cross compilation
> is not being used.

Cross compiliation mode is entered if the build triplet (which designates
the machine you are using to build the program) is different from the
host triple (which designates the machine the program will ultimately
run on).

You have specified both as x86_64-apple-macos10.10, so configure will
treat this as a native compilation as you have told it you are building
and running on the same system.

Cheers,
  Nick

Reply via email to