This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: --with-sysroot precise description?


On Tue, 2007-01-16 at 18:07 -0500, Mike Frysinger wrote:

> so you should have the wrapper invoke gcc with the corresponding --sysroot ... 
> i guess the crux of the issue is how you have the directories relative to 
> each other

That's not a problem: I can rearrange these however I want/need to do
it.

> invoking your one compiler could give you the behavior you desire:
> ...-gcc --sysroot=/.../foo-bar-linux-gnu
> ...-gcc --sysroot=/.../foo-rab-linux-gnu
> ...-gcc --sysroot=/.../foo-biz-linux-gnu

Whoa, wait a minute.  There's no --sysroot option to GCC; sysroot is a
CONFIGURE-time option (--with-sysroot).  That's why I have to rebuild a
different compiler for every possible target, because the sysroot value
is set at configure time.

Oh.... bummer.  I'm using GCC 3.4.6.  Checking the docs on gcc.gnu.org
it looks like this newfangled --sysroot option you are describing was
added in GCC 4.1 :-/

Argh and double argh.

I guess I can't complain since they did implement essentially exactly
what I asked for... but I still can't use it.  Sigh.

Back to the drawing board I guess...  I have a thought which is a hack
but might be good enough.

-- 
-----------------------------------------------------------------------------
 Paul D. Smith <psmith@netezza.com>                       http://netezza.com
 "Please remain calm--I may be mad, but I am a professional."--Mad Scientist
-----------------------------------------------------------------------------
      These are my opinions--Netezza takes no responsibility for them.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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