DRAFT pcl_1.8.1.bb: Fix compile error (#include_next <stdlib.h>)
This commit is contained in:
parent
045de10901
commit
d92b6d9f7a
|
@ -45,3 +45,14 @@ FILES_${PN}-dev += "${datadir}/${PN}-1.8/*.cmake"
|
||||||
# High memory needs mentioned in: https://github.com/PointCloudLibrary/pcl/issues/2284
|
# 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
|
# Setting just empty doesn't work, ninja will by default use number of cores available
|
||||||
PARALLEL_MAKE = "-j1"
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue