Skip to content

Add -isystem to make / pkgconfig flags#1470

Open
keith wants to merge 1 commit intobazel-contrib:mainfrom
keith:ks/add-isystem-to-make-pkgconfig-flags
Open

Add -isystem to make / pkgconfig flags#1470
keith wants to merge 1 commit intobazel-contrib:mainfrom
keith:ks/add-isystem-to-make-pkgconfig-flags

Conversation

@keith
Copy link
Member

@keith keith commented Mar 6, 2026

Previously this logic special cased --sysroot as an arugment that had
to be passed with the compiler because some configure scripts didn't add
CFLAGS to the configure steps. This same logic needs to apply to any
-isystem flags set by the toolchain for the same reason. Headers that
the toolchain requires with -isystem (without any deps) can contain
things needed for configure scripts to produce valid results. For
example they can contain glibc + sys/types.h etc, which is used by
make's build scripts to determine if it needs to typedef any standard
types.

Previously this logic special cased `--sysroot` as an arugment that had
to be passed with the compiler because some configure scripts didn't add
CFLAGS to the configure steps. This same logic needs to apply to any
`-isystem` flags set by the toolchain for the same reason. Headers that
the toolchain requires with `-isystem` (without any deps) can contain
things needed for configure scripts to produce valid results. For
example they can contain glibc + sys/types.h etc, which is used by
make's build scripts to determine if it needs to typedef any standard
types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants