]> code.ossystems Code Review - openembedded-core.git/commit
alsa-lib: fix function definitions error for mips
authorKai Kang <kai.kang@windriver.com>
Thu, 22 Aug 2013 09:59:29 +0000 (17:59 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Aug 2013 10:26:02 +0000 (11:26 +0100)
commit80b4eb9e12ccf815261f6a67fd9b8d97717e82d5
treefb1c6dd531129d6af6a663ab025d4b13e06c9543
parentad98f2bfa2c6ebb53b9c1fa4afad8842ab65062c
alsa-lib: fix function definitions error for mips

Functions atomic_add(s) and atomic_sub(s) are defined with 'extern
__inline__' that may cause compile fails when cross compile for mips.
The error message looks like:

| pcm/.libs/libpcm.a(pcm_meter.o): In function
`snd_pcm_meter_update_scope':
| .../alsa-lib-1.0.27.2/src/pcm/pcm_meter.c:139: undefined reference to
`atomic_sub'

Replace the 'extern __inline__' with 'static __inline__' to fix this
issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-multimedia/alsa/alsa-lib/Update-iatomic.h-functions-definitions-for-mips.patch [new file with mode: 0644]
meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb