DRAFT urdfdom-2.1.0.inc: Fix compile error (#include_next <stdlib.h>)

Version-specific because might be fixed in a new version.
This commit is contained in:
JeongBong Seo 2019-04-02 15:43:41 +09:00 committed by Herb Kuta
parent 33d710610e
commit 448b11306d
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# Copyright (c) 2019 LG Electronics, Inc.
# 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
}