1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-06 14:49:50 +00:00

zlib: Always use GNU ld for linking

Linking does not yet work with LLD

Fixes
aarch64-yoesdk-linux-ld.lld: error: undefined symbol: gzopen
>>> referenced by minigzip.c
>>>               minigzip.o:(main)

(From OE-Core rev: be5856616aee1d2134e6aedefc5fe664ad5e2a7d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2025-08-11 22:13:11 -07:00
committed by Richard Purdie
parent a8646063a5
commit a61f4e9fa4
+3
View File
@@ -20,6 +20,9 @@ SRC_URI[sha256sum] = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b
PREMIRRORS:append = " https://zlib.net/ https://zlib.net/fossils/"
CFLAGS += "-D_REENTRANT -fPIE"
# zlib does not build with lld, keep it until https://github.com/madler/zlib/pull/936
# is addressed
LDFLAGS:append = " -fuse-ld=bfd"
RDEPENDS:${PN}-ptest += "make"