diff options
author | khorben <khorben@pkgsrc.org> | 2017-07-09 14:30:07 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2017-07-09 14:30:07 +0000 |
commit | 0e7b1f90bd9c7f774a45d85975101a37f2a50e87 (patch) | |
tree | 0cc3dea28e61ba39a4a410be19736be19fcab460 /mk/platform | |
parent | c465f76d28a417b398930e660d92998a7c7c3591 (diff) | |
download | pkgsrc-0e7b1f90bd9c7f774a45d85975101a37f2a50e87.tar.gz |
Register support for PKGSRC_USE_STACK_CHECK
This adds -fstack-check to the CFLAGS (with GCC on NetBSD x86). Only
tested on NetBSD/amd64 so far.
Disabled by default.
Diffstat (limited to 'mk/platform')
-rw-r--r-- | mk/platform/NetBSD.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk index ffac5ec5e8a..ed652f6f70c 100644 --- a/mk/platform/NetBSD.mk +++ b/mk/platform/NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: NetBSD.mk,v 1.51 2017/07/04 18:29:24 khorben Exp $ +# $NetBSD: NetBSD.mk,v 1.52 2017/07/09 14:30:07 khorben Exp $ # # Variable definitions for the NetBSD operating system. @@ -154,6 +154,12 @@ _OPSYS_SUPPORTS_RELRO= yes _OPSYS_SUPPORTS_SSP= yes .endif +# Register support for stack check on supported architectures (with GCC) +.if (${MACHINE_ARCH} == "i386") || \ + (${MACHINE_ARCH} == "x86_64") +_OPSYS_SUPPORTS_STACK_CHECK= yes +.endif + _OPSYS_SUPPORTS_CWRAPPERS= yes # use readelf in check/bsd.check-vars.mk |