[Bug 230603] astro/kstars: fails to build with LLD 7

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 14 13:36:46 BST 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230603

--- Comment #7 from Jan Beich <jbeich at FreeBSD.org> ---
(In reply to Jan Beich from comment #5)
> Looks like LLD < 7 silently accepts any -z argument:
>
>   $ cc -Wl,-z,whatever /path/to/test.c

Old behavior was similar to BFD linker.

$ cc -fuse-ld=bfd -Wl,-z,whatever /path/to/test.c
$ cc -fuse-ld=/usr/local/bin/ld.bfd -Wl,-z,whatever /path/to/test.c
/usr/local/bin/ld.bfd: warning: -z whatever ignored.

$ cc -fuse-ld=gold -Wl,-z,whatever /path/to/test.c
/usr/local/bin/ld.gold: whatever: unknown -z option
/usr/local/bin/ld.gold: use the --help option for usage information
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.


More information about the kde-freebsd mailing list