From ebacb16f672021e675128c037592c67bdfdf99cf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Feb 2017 16:19:33 +0530 Subject: [PATCH] Compile the launcher with -fpie --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 37eed4a56..7bf1dc276 100755 --- a/setup.py +++ b/setup.py @@ -239,7 +239,7 @@ def package(args, for_bundle=False): # {{{ os.chmod(path, 0o755 if f.endswith('.so') else 0o644) launcher_dir = os.path.join(ddir, 'bin') safe_makedirs(launcher_dir) - cflags = '-O3 -Wall -Werror'.split() + cflags = '-O3 -Wall -Werror -fpie'.split() if for_bundle: cflags.append('-DFOR_BUNDLE') cflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))