[Bug target/121998] --disable-multilib doesn't work if provision for multilib has been made.

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 19 21:24:39 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121998

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to mark dunn from comment #4)
> What is the expected behaviour of --disable-multilib in terms of library
> names?

None. But note in your case it is multiarch anyways so maybe you want
--enable-multiarch instead.


> I expected it to not differentiate between /lib32 and /lib64 instead just
> revert to /lib or /usr/lib  depending on context.

Nope, that is not how aarch64 and x86_64 work.

> 
> I pointed out that --disable-multilib can NEVER have an effect if the
> provision for multilib has been made.MULTILIB_OSDIRNAMES
> In that case what is the point of '--disable-multilib' ?

in the case of x86_64 to disable i686 libraries and in the case of aarch64
disable ilp32 libraries (note ilp32 is deprecated but lib64 was used before to
support having arm and aarch64 sysroot as one).


More information about the Gcc-bugs mailing list