aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2018-07-17 10:14:53 +0200
committerKhem Raj <raj.khem@gmail.com>2018-07-20 16:07:11 -0700
commitb6ed94317034de0c34e6c406a2f096b9cc87e532 (patch)
treeba5b8df9854c36c00acf7c2df15b8133b33b9be8
parent350db7cc7ce3eb9e30066705c3764e30ddd2bdae (diff)
downloadmeta-openembedded-contrib-b6ed94317034de0c34e6c406a2f096b9cc87e532.tar.gz
meta-openembedded-contrib-b6ed94317034de0c34e6c406a2f096b9cc87e532.tar.bz2
meta-openembedded-contrib-b6ed94317034de0c34e6c406a2f096b9cc87e532.zip
tinyalsa: Add -fPIC to compile flags
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb
index 72094b6fad..157e4c91f1 100644
--- a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb
+++ b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb
@@ -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}/*"