Closed tpgxyz closed 3 years ago
Looks like this commit (https://github.com/akheron/jansson/commit/ca80d5127e56dd2ee056fdf3f4204017b78b89e0) does not takes into account that defult LD may be set to LLVM/LLD, finally producing error during linking:
FAILED: lib/libjansson.so.4.13.0 : && /usr/bin/clang -fPIC -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Wl,-O2 -Wl,--no-undefined -flto -Wl,--default-symver -shared -Wl,-soname,libjansson.so.4 -o lib/libjansson.so.4.13.0 CMakeFiles/jansson.dir/src/dump.c.o CMakeFiles/jansson.dir/src/error.c.o CMakeFiles/jansson.dir/src/hashtable.c.o CMakeFiles/jansson.dir/src/hashtable_seed.c.o CMakeFiles/jansson.dir/src/load.c.o CMakeFiles/jansson.dir/src/memory.c.o CMakeFiles/jansson.dir/src/pack_unpack.c.o CMakeFiles/jansson.dir/src/strbuffer.c.o CMakeFiles/jansson.dir/src/strconv.c.o CMakeFiles/jansson.dir/src/utf.c.o CMakeFiles/jansson.dir/src/value.c.o CMakeFiles/jansson.dir/src/version.c.o && : ld: error: unknown argument '--default-symver' clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
P.s. Looks like only ld.bfd does support this https://bugs.llvm.org/show_bug.cgi?id=43452
Facing this issue. Would be great if we can get this merged @akheron
Looks like this commit (https://github.com/akheron/jansson/commit/ca80d5127e56dd2ee056fdf3f4204017b78b89e0) does not takes into account that defult LD may be set to LLVM/LLD, finally producing error during linking:
P.s. Looks like only ld.bfd does support this https://bugs.llvm.org/show_bug.cgi?id=43452