[Bug 249990] sysutils/tracker: link failure (11.x, old ld(1))

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 6 00:10:38 UTC 2020


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

--- Comment #5 from John Hein <jcfyecrayz at liamekaens.com> ---
(In reply to Tobias C. Berner from comment #4)
It's a no-op on 12.x+ since lld is the default (or so I thought, but see *). 
So in the interest of simplicity I decided to not bother with making it
conditional.

However (*), I have recently come to understand that powerpc64 (I think) does
not have lld until 13.x, so to handle that, we might have to make it
conditional.

How about this:

# This can be removed after 11.x is no longer supported
.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
LDFLAGS+=      -fuse-ld=lld
.endif

Using OSVERSION is an option if powerpc64/11.x is not a supported combination -
I believe that's true, but correct me if not:

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
LDFLAGS+=      -fuse-ld=lld
.endif

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-desktop mailing list