diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-16 05:24:42 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-16 05:24:42 +0800 |
commit | cd3fed5add379134d6455658c9849d964a0c9435 (patch) | |
tree | 61d3e114cde72c29b63d58cd51b1f1eb7eabedf8 /Mk | |
parent | 5e75d8cf43c41a01911c9e0d5c46c3e4cc6a2f70 (diff) | |
download | freebsd-ports-gnome-cd3fed5add379134d6455658c9849d964a0c9435.tar.gz freebsd-ports-gnome-cd3fed5add379134d6455658c9849d964a0c9435.tar.zst freebsd-ports-gnome-cd3fed5add379134d6455658c9849d964a0c9435.zip |
- Use -isystem instead of -I to add ${LOCALBASE}/include to the list of header search paths
First, this prevents ports which use strict -Werror settings from
build failures in third party headers (real life example is
devel/pructl which uses -Werror -Weverything and fails in libedit
header on actually harmless padding warning).
Second, this prevents ports which install headers from picking up
their own headers from LOCALBASE instead of using ones from WRKDIR,
which leads to any kind of problems when upgrading via ports.
PR: 203101
Approved by: bapt
Differential Revision: D3618
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/localbase.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/Uses/localbase.mk b/Mk/Uses/localbase.mk index 5e2873656a94..8f0c3c61db0a 100644 --- a/Mk/Uses/localbase.mk +++ b/Mk/Uses/localbase.mk @@ -11,9 +11,9 @@ .if !defined(_INCLUDE_USES_LOCALBASE_MK) _INCLUDE_USES_LOCALBASE_MK= yes -CPPFLAGS+= -I${LOCALBASE}/include -CFLAGS+= -I${LOCALBASE}/include -CXXFLAGS+= -I${LOCALBASE}/include +CPPFLAGS+= -isystem ${LOCALBASE}/include +CFLAGS+= -isystem ${LOCALBASE}/include +CXXFLAGS+= -isystem ${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib # Use CONFIGURE_ENV instead of CMAKE_ARGS because devel/cmake itself also needs |