From ffeecb74833d1df244c2b10a59afae5f62564efe Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 22 Feb 2017 14:15:18 +0100 Subject: [PATCH] morty migration: card-detect: fix build failure Let Yocto use their own compilation flags instead of hard-coding the compile command. This fixes: ERROR: card-detect-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary https://jira.digi.com/browse/DEL-3451 Signed-off-by: Javier Viguera --- meta-digi-dey/recipes-multimedia/alsa/card-detect.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-multimedia/alsa/card-detect.bb b/meta-digi-dey/recipes-multimedia/alsa/card-detect.bb index b6d44f59a..5bff1c87c 100644 --- a/meta-digi-dey/recipes-multimedia/alsa/card-detect.bb +++ b/meta-digi-dey/recipes-multimedia/alsa/card-detect.bb @@ -11,8 +11,15 @@ SRC_URI = "file://card-detect.c" S = "${WORKDIR}" +inherit pkgconfig + +export CFLAGS += "`pkg-config --cflags alsa`" +export LDLIBS += "`pkg-config --libs alsa`" + +do_configure[noexec] = "1" + do_compile() { - ${CC} -O2 -Wall card-detect.c -o card-detect -lasound + oe_runmake card-detect } do_install() {