build-style cmake: replace -isystem with -I
Many packages depending on Qt5 or Qt4 and built with cmake generate "flags.make" files with -isystem for include paths. With gcc6 this results in e.g. "#include_next <stdlib.h>" giving an error, because a -isystem /usr/include is in the wrong place. The simple fix is to replace "-isystem" with just "-I".
This commit is contained in:
parent
a02fbf87b6
commit
8679124272
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ _EOF
|
|||
|
||||
cmake ${cmake_args} ${configure_args} $(echo ${cmake_builddir}|sed \
|
||||
-e 's|[^/]$|/|' -e 's|[^/]*||g' -e 's|/|../|g')
|
||||
|
||||
# Replace -isystem with -I for Qt4 and Qt5 packages
|
||||
find -name flags.make -exec sed -i "{}" -e"s;-isystem;-I;g" \;
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue