tinyalsa: Add -fPIC to compile flags

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Carlos Rafael Giani
2018-07-17 10:14:53 +02:00
committed by Khem Raj
parent 350db7cc7c
commit b6ed943170
@@ -14,5 +14,11 @@ S = "${WORKDIR}/git"
inherit cmake
# tinyalsa is built as a static library. Enable PIC to avoid relocation
# errors like these:
#
# unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
CFLAGS += " -fPIC -DPIC "
PACKAGES =+ "${PN}-tools"
FILES_${PN}-tools = "${bindir}/*"