summaryrefslogtreecommitdiff
path: root/recipes/alsa
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-06-11 19:58:32 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-06-15 12:54:46 -0400
commitc71ae3581666c85df3d86b9a7c79f9dcd79463c7 (patch)
tree9e59b14277981661fa55f0b91ddd81c7f3963bd2 /recipes/alsa
parent4319baa438ea7b26d4b7d8474440e684c11d877b (diff)
alsa-utils: fix linking against host libc.so/libm.so
Caused by expecting ncurses library in /usr/lib. For some people it's just a warning: ld: warning: library search path "/usr/lib" is unsafe for cross-compilation ld: skipping incompatible /usr/lib/libm.so when searching for -lm And for some people it breaks the build: ld: warning: library search path "/usr/lib" is unsafe for cross-compilation /usr/lib/libm.so: file not recognized: File format not recognized Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Diffstat (limited to 'recipes/alsa')
-rw-r--r--recipes/alsa/alsa-utils_1.0.18.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes/alsa/alsa-utils_1.0.18.bb b/recipes/alsa/alsa-utils_1.0.18.bb
index 2931545252..40718b5500 100644
--- a/recipes/alsa/alsa-utils_1.0.18.bb
+++ b/recipes/alsa/alsa-utils_1.0.18.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.alsa-project.org"
SECTION = "console/utils"
LICENSE = "GPL"
DEPENDS = "alsa-lib ncurses"
-PR = "r1"
+PR = "r2"
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
file://alsa-utils-automake.patch;patch=1 \
@@ -20,6 +20,7 @@ inherit autotools
do_configure_append() {
for i in $(find ${S} -name Makefile) ; do
sed -i -e s:/usr/include/ncurses:${STAGING_INCDIR}/ncurses:g $i
+ sed -i -e 's:-L/usr/lib -lncurses:-L${STAGING_LIBDIR} -lncurses:g' $i
done
}