From 37d9f9afaa2b4d3152e45261e4a08c2235262b7a Mon Sep 17 00:00:00 2001 From: arichardson Date: Mon, 13 Nov 2017 19:44:33 +0000 Subject: [PATCH] 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 --- share/mk/sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/sys.mk b/share/mk/sys.mk index a4112caffca1..eace8fe306ec 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -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