Glibc headers in one directory and linux headers in another

Shaun Jackman sjackman@gmail.com
Thu Aug 28 18:31:00 GMT 2014


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



More information about the Gcc-help mailing list