Author: arichardson
Date: Mon Nov 13 19:44:33 2017
New Revision: 325770
URL: https://svnweb.freebsd.org/changeset/base/325770

Log:
  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

Modified:
  head/share/mk/sys.mk

Modified: head/share/mk/sys.mk
==============================================================================
--- head/share/mk/sys.mk        Mon Nov 13 19:31:51 2017        (r325769)
+++ head/share/mk/sys.mk        Mon Nov 13 19:44:33 2017        (r325770)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to