File: 0001-Added-bind-now-hardening-linker-arguments.patch

package info (click to toggle)
python-nanomsg 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 164 kB
  • ctags: 234
  • sloc: python: 728; ansic: 431; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 1,009 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
23
24
25
26
27
28
29
From e6b400cf04d9264215781d67f8e08a5a7eb55cd6 Mon Sep 17 00:00:00 2001
From: Jonathon Love <jon@thon.cc>
Date: Tue, 31 May 2016 20:42:57 +1000
Subject: Added bind-now hardening linker arguments

---
 setup.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/setup.py b/setup.py
index 6274c49..a327fc6 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,7 @@ except OSError:
     cpy_extension = Extension(str('_nanomsg_cpy'),
                         sources=[str('_nanomsg_cpy/wrapper.c')],
                         libraries=[str('nanomsg')],
+                        extra_link_args=['-Wl,-z,now'],
                         )
 else:
     # Building with nanoconfig
@@ -55,6 +56,7 @@ else:
                         define_macros=[('WITH_NANOCONFIG', '1')],
                         sources=[str('_nanomsg_cpy/wrapper.c')],
                         libraries=[str('nanomsg'), str('nanoconfig')],
+                        extra_link_args=['-Wl,-z,now'],
                         )
 install_requires = []