diff options
author | Maxin B. John <maxin.john@intel.com> | 2016-08-01 18:34:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-10 09:35:57 +0100 |
commit | 79005ff905f8c82a8766af5a927b9a0f8929e24f (patch) | |
tree | dd5f538fa139f81893069ea70e563f8a75c37452 /meta/recipes-graphics/piglit | |
parent | 9b2f4dc36e9495447546d1257385e2fc8fc051b6 (diff) | |
download | openembedded-core-79005ff905f8c82a8766af5a927b9a0f8929e24f.tar.gz openembedded-core-79005ff905f8c82a8766af5a927b9a0f8929e24f.tar.bz2 openembedded-core-79005ff905f8c82a8766af5a927b9a0f8929e24f.zip |
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]
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-graphics/piglit')
-rw-r--r-- | meta/recipes-graphics/piglit/piglit_git.bb | 2 |
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/" PACKAGECONFIG ??= "" PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut," +LDFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-ldl', '', d)}" + do_configure_prepend() { if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no', d)}" = "no" ]; then sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d" ${S}/src/piglit/glut_wrap.h |