summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-08-01 18:34:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:46:29 +0100
commit3b064be9b1a916a93b10738dae4c727fbf397e88 (patch)
treee153bc80a9f4e830187551fb72a585abb6e496c8 /meta/recipes-graphics
parent3e97d194f8920aa567177b0213a47bd8824f2ab7 (diff)
downloadpoky-3b064be9b1a916a93b10738dae4c727fbf397e88.tar.gz
piglit: fix build failure with gold linker
When we use gold linker while DISTRO set to "nodistro", piglit build fails with the following error: | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to 'dlsym' | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to 'dlerror' | ../../../../lib/libpiglitutil_gl.so.0: error: undefined reference to 'dlopen' | collect2: error: ld returned 1 exit status Fix it by providing '-ldl' to LDFLAGS. [YOCTO #9851] (From OE-Core rev: 79005ff905f8c82a8766af5a927b9a0f8929e24f) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/piglit/piglit_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 811f7af73f..df90c4da02 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -30,6 +30,8 @@ do_compile[dirs] =+ "${B}/temp/"
30PACKAGECONFIG ??= "" 30PACKAGECONFIG ??= ""
31PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut," 31PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut,"
32 32
33LDFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-ldl', '', d)}"
34
33do_configure_prepend() { 35do_configure_prepend() {
34 if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no', d)}" = "no" ]; then 36 if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no', d)}" = "no" ]; then
35 sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d" ${S}/src/piglit/glut_wrap.h 37 sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d" ${S}/src/piglit/glut_wrap.h