diff options
author | khorben <khorben@pkgsrc.org> | 2017-11-12 13:34:14 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2017-11-12 13:34:14 +0000 |
commit | 7d3f3ab2e3f90a0088ece35efa2265a79d9a302a (patch) | |
tree | 570e7605ffffab5381ff6af23ae175bce975f3c3 /mk/platform | |
parent | 3152ab4faca23a0563c98c4201f9299e01b67376 (diff) | |
download | pkgsrc-7d3f3ab2e3f90a0088ece35efa2265a79d9a302a.tar.gz |
Add initial support for building packages reproducibly
It currently tackles two problems:
- gcc(1) hard-coding full paths in debugging information (with one
caveat at the moment)
- ar(1) hard-coding user IDs in archive headers
This allows packages built from the same tree and options to produce
identical results bit by bit. This option should be combined with ASLR
and PKGSRC_MKPIE to avoid predictable address offsets for attackers
attempting to exploit security vulnerabilities.
This is still disabled by default, and only supports NetBSD so far.
As discussed on tech-pkg@
Diffstat (limited to 'mk/platform')
-rw-r--r-- | mk/platform/NetBSD.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk index 0f863997e11..5c714d2b2d2 100644 --- a/mk/platform/NetBSD.mk +++ b/mk/platform/NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: NetBSD.mk,v 1.56 2017/10/03 13:18:00 jperkin Exp $ +# $NetBSD: NetBSD.mk,v 1.57 2017/11/12 13:34:14 khorben Exp $ # # Variable definitions for the NetBSD operating system. @@ -142,6 +142,9 @@ _OPSYS_SUPPORTS_MKPIE= yes _OPSYS_SUPPORTS_RELRO= yes .endif +# Register support for REPRO (with GCC) +_OPSYS_SUPPORTS_MKREPRO= yes + # Register support for SSP on most architectures (with GCC) .if (${MACHINE_ARCH} != "alpha") && \ (${MACHINE_ARCH} != "hppa") && \ |