[Bug 258318] dtrace command hard codes name of "ld" command

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Sep 2021 16:05:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258318

            Bug ID: 258318
           Summary: dtrace command hard codes name of "ld" command
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: swills@FreeBSD.org

Certain setups where external tool-chains are used and WITHOUT_LLD=yes is set
lack an "ld" command, causing dtrace command to fail. See bug 257525. This was
added in fb24b944:

https://cgit.freebsd.org/src/commit/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c?id=fb24b944be9a0a5c0fe8a09b28321d1ff2c245fd

I guess the nice thing to do here would be to have dtrace check for an LD
environment variable and use that if set, falling back to plain "LD".

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