This is the mail archive of the gcc-help@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]

Glibc headers in one directory and linux headers in another


Iâm attempting to compile a native GCC compiler that uses a newly
downloaded set of Linux headers and a newly compiled glibc. These two
packages are installed in different directories. Iâd like to specify
--with-native-system-header-dir twice, once for each set of headers. I
didnât in fact try that, but Iâm guessing that itâs not supported. I
tried using --with-headers, but itâs supported only for cross
compiles. Is there a set of configuration parameters that I can use to
accomplish this? My configure line is:

../configure --with-sysroot=/home/sjackman/.linuxbrew
--prefix=/Cellar/xgcc/4.9.1
--with-native-system-header-dir=/opt/glibc/include

The glibc headers are installed in $sysroot/opt/glibc/include.
The linux headers are installed in $sysroot/opt/linux-headers/include
and also symlinked into $sysroot/include.

Thanks,
Shaun

http://sjackman.ca


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