summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-11 23:15:11 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-13 22:32:07 -0700
commit6b3e7fe997005d97aa04ec4457ec04a171338c8b (patch)
treec1d4746cd1c043f3b12c40a7051bfb96a7509f4a /meta-oe
parent027440e5f62e01ae96e2c830cf673d11389cbd66 (diff)
downloadmeta-openembedded-6b3e7fe997005d97aa04ec4457ec04a171338c8b.tar.gz
freeglut: Use -fcommon always
This package does not compile with -fno-common yet errors out like | /mnt/b/yoe/master/build/tmp/work/armv7vet2hf-neon-yoe-linux-musleabi/freeglut/3.2.1-r0/recipe-sysroot-native/usr/bin/arm-yoe-linux-musleabi/arm-yoe-linux-musleabi-ld: CMakeFiles/freeglut.dir/src/fg_gl2.c.o:/usr/src/debug/freeglut/3.2.1- r0/freeglut-3.2.1/src/fg_gl2.h:72: multiple definition of `fghBindBuffer'; CMakeFiles/freeglut.dir/src/fg_geometry.c.o:/usr/src/debug/freeglut/3.2.1-r0/freeglut-3.2.1/src/fg_gl2.h:72: first defined here Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb
index 851641c08..6ef9f74c7 100644
--- a/meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb
+++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.2.1.bb
@@ -12,6 +12,9 @@ inherit cmake features_check
12# depends on virtual/libx11, virtual/libgl 12# depends on virtual/libx11, virtual/libgl
13REQUIRED_DISTRO_FEATURES = "x11 opengl" 13REQUIRED_DISTRO_FEATURES = "x11 opengl"
14 14
15# Do not use -fno-common, check back when upgrading to new version it might not be needed
16CFLAGS += "-fcommon"
17
15PROVIDES += "mesa-glut" 18PROVIDES += "mesa-glut"
16 19
17DEPENDS = "virtual/libx11 libxmu libxi virtual/libgl libglu libxrandr" 20DEPENDS = "virtual/libx11 libxmu libxi virtual/libgl libglu libxrandr"