Skip to contentSkip to conversation

tinyalsa: Add -fPIC to compile flags

PATCH New Carlos Rafael Giani 1 participant 1 message Jul 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tinyalsa: Add -fPIC to compile flags

---
 meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb +6 -0
index 72094b6fa..157e4c91f 100644
@@ -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}/*"
Signature · 1 line
2.17.1