bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-18 Thread Ludovic Courtès
Done in 009b53f (current ‘core-updates’.) Ludo’.

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-18 Thread Ludovic Courtès
Andy Wingo skribis: > On Thu 17 Dec 2015 22:43, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo skribis: >> >>> We should be using C_INCLUDE_PATH instead of CPATH, to mark system >>> headers as system headers. Except that C_INCLUDE_PATH only works for >>> C, so we need to also set CPLUS_

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-18 Thread Andy Wingo
Thank you for thinking about this :) On Thu 17 Dec 2015 22:43, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> We should be using C_INCLUDE_PATH instead of CPATH, to mark system >> headers as system headers. Except that C_INCLUDE_PATH only works for >> C, so we need to also se

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-17 Thread Ludovic Courtès
Andy Wingo skribis: > So! CPATH is like -I but C_INCLUDE_PATH et al are like -isystem. > Here's the docs for -isystem ("Preprocessor Options"): > > '-isystem DIR' > Search DIR for header files, after all directories specified by > '-I' but before the standard system directo

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-17 Thread Ludovic Courtès
Efraim Flashner skribis: > Are there other ones that could be set? Every time I compile it I see options > for java and go. GCJ honors ‘CLASSPATH’ (see gcc/java/jcf-path.c in the GCC tree), but the Go front-end doesn’t seem to have anything similar. Ludo’.

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-17 Thread Andy Wingo
On Wed 16 Dec 2015 20:18, Efraim Flashner writes: >> We should be using C_INCLUDE_PATH instead of CPATH, to mark system >> headers as system headers. Except that C_INCLUDE_PATH only works for >> C, so we need to also set CPLUS_INCLUDE_PATH and OBJC_INCLUDE_PATH. >> And that's the proposal of thi

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-16 Thread Efraim Flashner
On Wed, 16 Dec 2015 14:41:11 + Andy Wingo wrote: > Hi, > > I am building GDB from git, because I want to hack on GDB. I have a few > build-related things in my profile, including GCC. I enter an > environment for GDB like this: > > guix environment gdb --ad-hoc flex autoconf-2.64 > > C

bug#22186: Use {C,CPLUS,OBJC}_INCLUDE_PATH instead of CPATH

2015-12-16 Thread Andy Wingo
Hi, I am building GDB from git, because I want to hack on GDB. I have a few build-related things in my profile, including GCC. I enter an environment for GDB like this: guix environment gdb --ad-hoc flex autoconf-2.64 Cool. Very good. I build: mkdir +2.0 cd +2.0 ../configure --prefi