DRAFT pcl_1.8.1.bb: Fix compile error (#include_next <stdlib.h>)

This commit is contained in:
Herb Kuta 2019-04-22 21:58:05 -07:00
parent 045de10901
commit d92b6d9f7a
1 changed files with 11 additions and 0 deletions

View File

@ -45,3 +45,14 @@ FILES_${PN}-dev += "${datadir}/${PN}-1.8/*.cmake"
# High memory needs mentioned in: https://github.com/PointCloudLibrary/pcl/issues/2284
# Setting just empty doesn't work, ninja will by default use number of cores available
PARALLEL_MAKE = "-j1"
# Fixes this:
# | fatal error: stdlib.h: No such file or directory
# | #include_next <stdlib.h>
do_configure_append() {
if [ -e ${B}/build.ninja ]; then
sed -i -e 's/-isystem /-I/g' ${B}/build.ninja
else
grep -rl -- '-isystem ' ${B} | xargs sed -i -e 's/-isystem /-I/g'
fi
}