1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Federico Ceratto <federico@debian.org>
Date: Fri, 19 May 2017 14:15:21 +0100
Subject: Fortify Nimble build
Forwarded: https://github.com/nim-lang/nimble/pull/463
---
dist/nimble/src/nimble.nim.cfg | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dist/nimble/src/nimble.nim.cfg b/dist/nimble/src/nimble.nim.cfg
index 1878f18..844d548 100644
--- a/dist/nimble/src/nimble.nim.cfg
+++ b/dist/nimble/src/nimble.nim.cfg
@@ -7,4 +7,6 @@
--path:"../vendor/checksums/src"
-d:ssl
-d:nimcore # Enable 'gorge' in Nim's VM. See https://github.com/nim-lang/Nim/issues/8096
--d:zippyNoSimd
\ No newline at end of file
+-d:zippyNoSimd
+gcc.options.always = "-w -D_FORTIFY_SOURCE=2 -O1 -Wformat -Wformat-security -fPIE -fstack-protector-all"
+gcc.options.linker = "-ldl -fPIE -pie -z relro -z now"
|