Compile the launcher with -fpie

This commit is contained in:
Kovid Goyal 2017-02-06 16:19:33 +05:30
parent 585a01fff6
commit ebacb16f67

View File

@ -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()))