This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MULTILIB_MATCHES question


Michael Eager wrote:
I'm having some trouble understanding how to write
a MULTILIB_MATCHES specification.

I need to treat a simple option like "-mhard-float" the
same as an option with a value "-mfp=hard".  Here's what
I came up with:

MULTILIB_OPTIONS = mfp=hard

MULTILIB_DIRNAMES = hard

MULTILIB_MATCHES = mfp?hard=mhard-float

When I specify -mfp=hard, the correct lib ("hard")is selected.
When I specify -mhard-float, the default is selected.

How should I write the MULTILIB_MATCHES spec to do this?

(The docs are less than clear about the MULTILIB_MATCHES
option and don't mention using '?'.)

Ah, never mind. I found a typo in my specification.


--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]