diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2018-07-17 10:14:53 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-07-20 16:07:11 -0700 |
commit | b6ed94317034de0c34e6c406a2f096b9cc87e532 (patch) | |
tree | ba5b8df9854c36c00acf7c2df15b8133b33b9be8 /meta-multimedia/recipes-multimedia/tinyalsa | |
parent | 350db7cc7ce3eb9e30066705c3764e30ddd2bdae (diff) | |
download | meta-openembedded-b6ed94317034de0c34e6c406a2f096b9cc87e532.tar.gz |
tinyalsa: Add -fPIC to compile flags
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/tinyalsa')
-rw-r--r-- | meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb | 6 |
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 72094b6fa..157e4c91f 100644 --- a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb +++ b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb | |||
@@ -14,5 +14,11 @@ S = "${WORKDIR}/git" | |||
14 | 14 | ||
15 | inherit cmake | 15 | inherit cmake |
16 | 16 | ||
17 | # tinyalsa is built as a static library. Enable PIC to avoid relocation | ||
18 | # errors like these: | ||
19 | # | ||
20 | # unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17' | ||
21 | CFLAGS += " -fPIC -DPIC " | ||
22 | |||
17 | PACKAGES =+ "${PN}-tools" | 23 | PACKAGES =+ "${PN}-tools" |
18 | FILES_${PN}-tools = "${bindir}/*" | 24 | FILES_${PN}-tools = "${bindir}/*" |