Remove -fuse-ld= when creating _LDFLAGS from LDFLAGS
The -fuse-ld flag is only meant to be passed to the compiler driver so direct linker invocations should not include it. Reviewed by: emaste, jhb Approved by: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D12910
This commit is contained in:
parent
fda85a2a94
commit
37d9f9afaa
@ -243,7 +243,7 @@ LFLAGS ?=
|
||||
# compiler driver flags (e.g. -mabi=*) that conflict with flags to LD.
|
||||
LD ?= ld
|
||||
LDFLAGS ?=
|
||||
_LDFLAGS = ${LDFLAGS:S/-Wl,//g:N-mabi=*}
|
||||
_LDFLAGS = ${LDFLAGS:S/-Wl,//g:N-mabi=*:N-fuse-ld=*}
|
||||
|
||||
LINT ?= lint
|
||||
LINTFLAGS ?= -cghapbx
|
||||
|
Loading…
Reference in New Issue
Block a user