On 26 Jun 2006 14:42:20 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote:
No, that wouldn't work.  MULTILIB_EXCEPTIONS takes a shell glob
pattern.  It is invoked for each option set which is going to be
generated.  I would expect that one of the option sets would be simply
"-msingle-pic-base".  So it seems to me that MULTILIB_EXCEPTIONS can
be made to work, if you play with the syntax.  However, if it can not
be made to work for some reason, then I don't know of anything else
which will do what you want.  Sorry.

Reading through gcc/genmultilib, it looks as though
MULTILIB_EXCLUSIONS can take a '!' parameter, but MULTILIB_EXCEPTIONS
cannot.

Here's another failed experiment:

MULTILIB_OPTIONS    += fno-pic/fPIC
MULTILIB_DIRNAMES   += nopic pic
#
MULTILIB_OPTIONS    += mno-single-pic-base/msingle-pic-base
MULTILIB_DIRNAMES   += noxip xip
MULTILIB_EXCEPTIONS += *fno-pic*/*msingle-pic-base*

I wish I knew what text the shell glob pattern was globbing against.
It's clearly not using the resulting directory structure, since the
EXCEPTIONS use the OPTIONS names and not the DIRNAMES.

Cheers,
Shaun

Reply via email to