This is the mail archive of the gcc-patches@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: PATCH: --with-build-sysroot, et. al.


Daniel Jacobowitz wrote:
On Mon, Jul 25, 2005 at 05:27:45PM -0400, DJ Delorie wrote:

I see your point -- but I'm not sure what to do about it.

Me neither.

--with-build-time-sysroot maybe?

If we must, sure.


So, you'd do:

./configure --with-sysroot=$(install_sysroot) --prefix=$(install_prefix)
make sysroot=$(local_sysroot)
make install prefix=$(local_prefix)
>
Hmm, this is probably practical - at least, as long as we document it.

I was hoping to avoid that, just in that having to add arguments to make seems uglier to me, but my dubious aesthetic sense is not particularly valuable, especially in this area!


Doing as you suggests also means that we have to do some more shell gunk in the toplevel Makefile, since if the sysroot make variable is set, we need to add "--sysroot=$(SYSROOT)" to {C,CXX}FLAGS_FOR_TARGET. In GNU make, that would be easy, but I think the top-level still strives for independent from GNU make.

I guess we would have to do something like set set SYSROOT_CFLAGS_FOR_TARGET to the string:

`test "x$(sysroot)" = x || echo "--sysroot=$(sysroot)"`

and then hope that it got expanded in the right places?

I can work on that, if you think it's better.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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