Re: Would it make sense to have sysroot come from an environment variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bryan Ischo <bryan@xxxxxxxxx> writes:

> Thank you for your reply.  So just to be clear, are you saying that I
> would configure gcc --with-sysroot=DIR, and then at runtime I can do:
>
> $ mv DIR DIR.moved
> $ /some/random/path/to/gcc
>
> And that gcc, which was installed in a place that had nothing to do
> with DIR, will somehow know that I moved DIR?  How does it do that?

Yes, that is what I am saying.  The key is that gcc itself is under
DIR--it's in DIR/bin.  It looks at argv[0] to see where it was run from.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux