mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
zlib: Enable PIE for native builds
The zlib crate in rust uses libz.a which comes from the zlib-native build. Some distros like alma9, fedora etc. do not have PIE enabled by default for system compiler. This leads to target-rust-ccld linking error for cargo-native as (line no 22936): error: linking with `/home/pokybuild/yocto-worker/qemuarm64/build/build/tmp/work/x86_64-linux/cargo-native/1.79.0/wrapper/target-rust-ccld` failed: exit status: 1 https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/9385/steps/13/logs/stdio Hence, enable PIE option to CFLAGS for native builds. (From OE-Core rev: 7146d260f655fa924461333c8c2944ebb93b2b3c) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
088d9fe6b7
commit
9da30a8753
@@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b
|
||||
# to PREMIRRORS so it is also searched automatically.
|
||||
PREMIRRORS:append = " https://zlib.net/ https://zlib.net/fossils/"
|
||||
|
||||
CFLAGS += "-D_REENTRANT"
|
||||
CFLAGS += "-D_REENTRANT -fPIE"
|
||||
|
||||
RDEPENDS:${PN}-ptest += "make"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user