diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 14:26:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 16:54:07 +0000 |
commit | a2070fb645bbb1542b304f499b7f1210523836b9 (patch) | |
tree | 71b66e9202eb98d800468d6f9967b89779844de6 /meta/recipes-sato | |
parent | bf45449f1aeb98498c0194dbf60ed98af3feca75 (diff) | |
download | poky-a2070fb645bbb1542b304f499b7f1210523836b9.tar.gz |
puzzles: Ensure to link against libm for math functions
Without this we can see failures like:
| make: *** [samegame] Error 1
| /media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.3/ld: inertia.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
| /media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.3/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO /media/build1/poky/build/tmp/sysroots/qemux86/lib/libm.so.6 so try adding it to the linker command line
| /media/build1/poky/build/tmp/sysroots/qemux86/lib/libm.so.6: could not read symbols: Invalid operation
| collect2: ld returned 1 exit status
| make: *** [inertia] Error 1
(From OE-Core rev: 2ebfb9d9ed7554180c3c077b14291a1853f8e2ef)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_r9306.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-sato/puzzles/puzzles_r9306.bb b/meta/recipes-sato/puzzles/puzzles_r9306.bb index c3849309ad..d9b8e3e405 100644 --- a/meta/recipes-sato/puzzles/puzzles_r9306.bb +++ b/meta/recipes-sato/puzzles/puzzles_r9306.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION="Simon Tatham's Portable Puzzle Collection" | |||
2 | HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" | 2 | HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
3 | 3 | ||
4 | DEPENDS = "gtk+ libxt" | 4 | DEPENDS = "gtk+ libxt" |
5 | PR = "r0" | 5 | PR = "r1" |
6 | MOD_PV = "${@d.getVar('PV',1)[1:]}" | 6 | MOD_PV = "${@d.getVar('PV',1)[1:]}" |
7 | 7 | ||
8 | LICENSE = "MIT" | 8 | LICENSE = "MIT" |
@@ -23,6 +23,7 @@ do_configure () { | |||
23 | 23 | ||
24 | do_compile_prepend = " \ | 24 | do_compile_prepend = " \ |
25 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ | 25 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ |
26 | export XLFLAGS=-lm \ | ||
26 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " | 27 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " |
27 | 28 | ||
28 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*" | 29 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*" |