[Bug 277905] net/jose: fix build with lld 18
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 277905] net/jose: fix build with lld 18"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Mar 2024 16:28:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277905 --- Comment #3 from Dimitry Andric <dim@FreeBSD.org> --- (In reply to Howard Holm from comment #2) Yeah, the correct way to check for --version-script support in a linker would be to have a small test with one correct .c file and one correct .map file, the latter with only valid symbols from from the .c file. As it is, the meson test failed because it tries "-Wl,--version-script=...", which works neither on lld nor on BFD ld: $ cc version-test.c -o foo -Wl,--version-script=... -fuse-ld=lld ld.lld: error: cannot find version script ... cc: error: linker command failed with exit code 1 (use -v to see invocation) $ cc version-test.c -o foo -Wl,--version-script=... -fuse-ld=bfd /usr/local/bin/ld.bfd: cannot open linker script file ...: No such file or directory cc: error: linker command failed with exit code 1 (use -v to see invocation) -- You are receiving this mail because: You are the assignee for the bug.