Specs files and "-B"
Prof A Olowofoyeku (The African Chief)
chiefsoft@bigfoot.com
Fri Oct 17 19:18:00 GMT 2003
Hi all
I am trying to programme the specs file (gcc-3.2.3) to deal with a
command line switch to gcc. What I would like to achieve is for some
named directories to be added to the search path for libraries if that
switch is given at the command line. I have not found a way to do this
in the specs file. Is there a way?
For example, assuming that the switch is "-mfoo-bar", I have tried
something this:
*lib:
%{mfoo-bar:-L/usr/foo/lib -L/foo/lib} -lblah -lblah-blah etc., etc.
What I really need is to be able pass "-B" and not "-L" (which does
nothing to achieve what I need). But "-B" seems not to be accepted
anywhere in the specs file.
Am I on a hiding to nothing, or is there a way to do this other than by
patching the gcc driver program (or passing the "-B" switch manually on
the command line - which I want to avoid if at all possible)?
Thanks.
Best regards, The Chief
--------
Prof. Abimbola A. Olowofoyeku (The African Chief)
web: http://www.bigfoot.com/~african_chief/
More information about the Gcc
mailing list