svn commit: r434650 - head/devel/binutils

Bryan Drewery bdrewery at FreeBSD.org
Wed Feb 22 23:32:20 UTC 2017


Author: bdrewery
Date: Wed Feb 22 23:32:19 2017
New Revision: 434650
URL: https://svnweb.freebsd.org/changeset/ports/434650

Log:
  Add a STATIC option to build the toolchain as static.
  
  Approved by:	bapt

Modified:
  head/devel/binutils/Makefile

Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile	Wed Feb 22 22:24:53 2017	(r434649)
+++ head/devel/binutils/Makefile	Wed Feb 22 23:32:19 2017	(r434650)
@@ -21,7 +21,7 @@ BUILD_DEPENDS=	${LOCALBASE}/lib/libgmp.s
 CONFLICTS=	libbfd-[0-9]*
 .endif
 
-OPTIONS_DEFINE=	NLS RELRO
+OPTIONS_DEFINE=	NLS RELRO STATIC
 
 RELRO_DESC=	enable -z relro in ELF linker by default
 
@@ -72,6 +72,8 @@ OPTIONS_SUB=	yes
 NLS_USES=	gettext
 NLS_CONFIGURE_ENABLE=	nls
 
+STATIC_LDFLAGS+=	-all-static
+
 .include <bsd.port.pre.mk>
 
 # Actual earliest version may differ slightly


More information about the svn-ports-head mailing list