This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Glibc headers in one directory and linux headers in another
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 28 Aug 2014 11:30:32 -0700
- Subject: Glibc headers in one directory and linux headers in another
- Authentication-results: sourceware.org; auth=none
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
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