This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Specifying a MULTILIB dependency
"Shaun Jackman" <sjackman@gmail.com> writes:
> I'm using MULTILIB_OPTIONS and MULTILIB_DIRNAMES to compile a PIC/XIP
> toolchain. I'm familiar with the MULTILIB_EXCEPTIONS mechanism to
> specify incompatible configurations. How, though, do I indicate that
> msingle-pic-base depends on fPIC?
>
> MULTILIB_OPTIONS += fPIC
> MULTILIB_DIRNAMES += pic
> MULTILIB_OPTIONS += msingle-pic-base
> MULTILIB_DIRNAMES += xip
The usual hacked up way is to MULTILIB_EXCEPTIONS to remove
-msingle-pic-base without -fPIC. Something like
MULTILIB_EXCEPTIONS = -msingle-pic-base
might do it.
Ian