diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2017-02-22 23:32:19 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2017-02-22 23:32:19 +0000 |
commit | 3794eb816628a4c7b95cacb7453c42bde2eb1c34 (patch) | |
tree | 79722f7d33721f671b96f423b3def46446eb4c73 | |
parent | 4f4aa69b1188688c979b36bc79ea36a4d2db8b9d (diff) | |
download | FreeBSD-ports-3794eb816628a4c7b95cacb7453c42bde2eb1c34.zip FreeBSD-ports-3794eb816628a4c7b95cacb7453c42bde2eb1c34.tar.gz |
Add a STATIC option to build the toolchain as static.
Approved by: bapt
-rw-r--r-- | devel/binutils/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 9567451..ebf8861 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -21,7 +21,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.so:math/gmp \ 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 |