svn commit: samba r22840 - in branches: SAMBA_3_0/source/python	SAMBA_3_0_25/source/python SAMBA_3_0_26/source/python Author: ab
Date: 2007-05-14 09:47:58 +0000 (Mon, 14 May 2007)
New Revision: 22840

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22840

Log:
Add -pie support to Python's setup.py. This should fix build of python libs on recent distributions that take care of security.
Modified:
   branches/SAMBA_3_0/source/python/setup.py
   branches/SAMBA_3_0_25/source/python/setup.py
   branches/SAMBA_3_0_26/source/python/setup.py


Changeset:
Modified: branches/SAMBA_3_0/source/python/setup.py
===================================================================
--- branches/SAMBA_3_0/source/python/setup.py	2007-05-14 09:44:26 UTC (rev 22839)
+++ branches/SAMBA_3_0/source/python/setup.py	2007-05-14 09:47:58 UTC (rev 22840)
@@ -67,6 +67,8 @@
         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"):

Modified: branches/SAMBA_3_0_25/source/python/setup.py
===================================================================
--- branches/SAMBA_3_0_25/source/python/setup.py	2007-05-14 09:44:26 UTC (rev 22839)
+++ branches/SAMBA_3_0_25/source/python/setup.py	2007-05-14 09:47:58 UTC (rev 22840)
@@ -67,6 +67,8 @@
         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"):

Modified: branches/SAMBA_3_0_26/source/python/setup.py
===================================================================
--- branches/SAMBA_3_0_26/source/python/setup.py	2007-05-14 09:44:26 UTC (rev 22839)
+++ branches/SAMBA_3_0_26/source/python/setup.py	2007-05-14 09:47:58 UTC (rev 22840)
@@ -67,6 +67,8 @@
         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"):

