bug#72916: Cross build MacOS arm64 to MacOS x86_64 and probably others cross build as well

Martin Štrympl <[email protected]> Sat, 31 Aug 2024 13:40:39 +0200
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <CAGCHcio2Oc7df+osRruj_0Y4UzennK+EUXu6_ZZc7nJ1RyZy2Q@mail.gmail.com>
in libtool.m4 file:

line 1130 in last downloaded version 2.4.7
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib
    -o \$lib-master.o \$libobjs~\$CC -dynamiclib
\$allow_undefined_flag -o \$l     ib \$lib-master.o \$deplibs
\$compiler_flags -install_name \$rpath/\$soname
\$verstring$_lt_dsymutil"

probably missing $compiler_flags variable in first CC command.

This probably causes
https://github.com/gperftools/gperftools/issues/1552 and simular
problem with GMP 6.3.0 cross build (also *-master.o file affected)

As result in cross build -master.o files is linked for architecture
where build process run, not for architecture where it should run
(defined by --host).