File: fortify-nimble.patch

package info (click to toggle)
nim 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,951,160 kB
  • sloc: sh: 24,599; ansic: 1,771; python: 1,493; makefile: 1,013; sql: 298; asm: 141; xml: 13
file content (22 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
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"