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

--- Comment #5 from John Hein <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
To unsubscribe, send any mail to "[email protected]"

Reply via email to