[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system header
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers. |
Date: |
Tue, 03 May 2016 14:06:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Andy Wingo <address@hidden> skribis:
> One final ignorant question: there really is no way to do this without
> patching GCC?
Unfortunately no. Currently, both a native compiler and a cross
compiler honor CPATH, LIBRARY_PATH, etc., meaning that they cannot be
used at all in a cross-compilation environment.
I think we should push some more for inclusion of this functionality
upstream.
> And why just one CROSS_C_INCLUDE_PATH -- would it not be necessary in
> theory to have such a CROSS_ARCH_... for each ARCH that we might be
> interested in? I am not suggesting that you make the change now but I
> want to know what the right thing is :)
In theory, you’re right. That’s one of the concerns that was raised:
http://gcc.gnu.org/ml/gcc/2013-02/msg00125.html
I don’t think it’s a common use case though.
Thanks for taking the time to review, BTW!
Ludo’.