This is the mail archive of the
mailing list for the GCC project.
Question about sysroot and fixincludes
- From: Alexander Ivchenko <aivchenk at gmail dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Cc: Andrew Hsieh <andrewhsieh at google dot com>, Pavel Chupin <pavel dot v dot chupin at gmail dot com>
- Date: Wed, 16 Jul 2014 16:08:53 +0400
- Subject: Question about sysroot and fixincludes
- Authentication-results: sourceware.org; auth=none
Hi, I have a question about sysroot and fixincludes.
On Android there are different API levels (like android-9, android-10
etc) that match different versions of OS. Gcc from NDK is configured
using sysroot for android-9 and the convenient way for compiling for,
say, android-19 was by providing the sysroot to android-19 as a
command line option (--sysroot).
However, the header from the sysroot with which gcc was configured
could be "fixincluded", and, when I provide a different sysroot as a
command line option, "fixincluded" header could replace the actual
header from the specified sysroot - that is the root-cause of certain
Should search in 'include-fixed' be disabled when sysroot command line
option is specified?