From d92b6d9f7a19d2da7a301f90b85feaed2e37d110 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Mon, 22 Apr 2019 21:58:05 -0700 Subject: [PATCH] DRAFT pcl_1.8.1.bb: Fix compile error (#include_next ) --- recipes-extended/pcl/pcl_1.8.1.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-extended/pcl/pcl_1.8.1.bb b/recipes-extended/pcl/pcl_1.8.1.bb index 786ec7b..df97e19 100644 --- a/recipes-extended/pcl/pcl_1.8.1.bb +++ b/recipes-extended/pcl/pcl_1.8.1.bb @@ -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 +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 +}