[oe-commits] [meta-openembedded] 07/08: tinyalsa: Add -fPIC to compile flags
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 18 15:14:14 UTC 2018
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit b5936198f10cca9588dfd1ac2bd9f325487eda07
Author: Carlos Rafael Giani <dv at pseudoterminal.org>
AuthorDate: Tue Jul 17 10:14:53 2018 +0200
tinyalsa: Add -fPIC to compile flags
Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb
index 72094b6..157e4c9 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}/*"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list