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>
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 \
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
}