summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2007-05-14 09:47:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:01 -0500
commitb090b8983bf26779c476c047e952e475c095932e (patch)
treeeba0b4413d68f29395ded19fe1531d361240e0fc /source
parente522fb9bb72580a162c46db4e7ee8c7933705cee (diff)
downloadsamba-b090b8983bf26779c476c047e952e475c095932e.tar.gz
samba-b090b8983bf26779c476c047e952e475c095932e.tar.xz
samba-b090b8983bf26779c476c047e952e475c095932e.zip
r22840: Add -pie support to Python's setup.py. This should fix build of python libs on recent distributions that take care of security.
Diffstat (limited to 'source')
-rwxr-xr-xsource/python/setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/python/setup.py b/source/python/setup.py
index ce417710b30..1efe5938e11 100755
--- a/source/python/setup.py
+++ b/source/python/setup.py
@@ -67,6 +67,8 @@ for lib in string.split(samba_libs):
libraries.append(lib[2:])
elif lib[0:8] == ("-pthread"):
pass # Skip linker flags
+ elif lib[0:4] == ("-pie"):
+ pass # Skip linker flags
elif lib[0:2] == "-L":
library_dirs.append(lib[2:])
elif lib[0:2] in ("-W","-s"):