aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/build_padding.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-06-20 19:21:43 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-06-20 19:21:43 -0400
commit5e12f87d5c297771b59116914dcb2500dde25294 (patch)
treeaaf9c544e2aaf7a053ab0b8dd2c819d4acdeed1b /src/_cffi_src/build_padding.py
parentb2c2ff493c08f1c713fc88e3d2c4d9293beff4b9 (diff)
parentdccbc9b00a17afcfdee35505fcf69bf3ce076056 (diff)
downloadcryptography-5e12f87d5c297771b59116914dcb2500dde25294.tar.gz
cryptography-5e12f87d5c297771b59116914dcb2500dde25294.tar.bz2
cryptography-5e12f87d5c297771b59116914dcb2500dde25294.zip
Merge pull request #2034 from reaperhulk/windows-flags
enable ASLR and NX on windows builds (affects 2.x only)
Diffstat (limited to 'src/_cffi_src/build_padding.py')
-rw-r--r--src/_cffi_src/build_padding.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/_cffi_src/build_padding.py b/src/_cffi_src/build_padding.py
index 3eeac2e2..5df93d80 100644
--- a/src/_cffi_src/build_padding.py
+++ b/src/_cffi_src/build_padding.py
@@ -5,8 +5,9 @@
from __future__ import absolute_import, division, print_function
import os
+import sys
-from _cffi_src.utils import build_ffi
+from _cffi_src.utils import build_ffi, extra_link_args
with open(os.path.join(
@@ -22,5 +23,6 @@ with open(os.path.join(
ffi = build_ffi(
module_name="_padding",
cdef_source=types,
- verify_source=functions
+ verify_source=functions,
+ extra_link_args=extra_link_args(sys.platform),
)