Closed
Description
LDFLAGS
is required for the linker to find bundled libraries
Line 728 in 378f192
But libunwind
build system is not passing it to the linker, causing configure/build failure on systems without zlib
, for example the nixpkgs stdenv.
configure:3928: checking whether the C compiler works
configure:3950: gcc -m64 -U_FORTIFY_SOURCE -fPIC -lz -Wl,-rpath,'$$ORIGIN' -Wl,-z,origin -Wl,-rpath-link,/build/julia-1.10.5/usr/lib -Wl,--enable-new-dtags conftest.c >&5
/nix/store/x7yyxvwy1f9hlx72rzrgx069jyf7hxwr-binutils-2.42/bin/ld: cannot find -lz: No such file or directory
Additionally, in #42782, -lz
was added to LIBUNWIND_CFLAGS
in deps/unwind.mk
:
Line 6 in 378f192
But
-lz
is already handled by libunwind
configure script:https://github.com/libunwind/libunwind/blob/v1.5.0/configure.ac#L316