SOURCES: samba-setup-python.patch - add -pthread handling

arekm arekm at pld-linux.org
Fri Jul 8 22:52:03 CEST 2005


Author: arekm                        Date: Fri Jul  8 20:52:03 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add -pthread handling

---- Files affected:
SOURCES:
   samba-setup-python.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/samba-setup-python.patch
diff -u SOURCES/samba-setup-python.patch:1.1 SOURCES/samba-setup-python.patch:1.2
--- SOURCES/samba-setup-python.patch:1.1	Thu Sep  2 23:10:28 2004
+++ SOURCES/samba-setup-python.patch	Fri Jul  8 22:51:58 2005
@@ -1,5 +1,6 @@
---- samba-3.0.6/source/python/setup.py.orig	2004-04-04 09:37:15.000000000 +0200
-+++ samba-3.0.6/source/python/setup.py	2004-09-02 22:53:26.622271448 +0200
+diff -urN samba-3.0.14a.org/source/python/setup.py samba-3.0.14a/source/python/setup.py
+--- samba-3.0.14a.org/source/python/setup.py	2005-02-25 18:59:23.000000000 +0100
++++ samba-3.0.14a/source/python/setup.py	2005-07-08 22:51:27.823948560 +0200
 @@ -49,8 +49,12 @@
  
  libraries = []
@@ -13,12 +14,15 @@
      if lib[0:2] == "-l":
          libraries.append(lib[2:])
          continue
-@@ -60,6 +64,9 @@
+@@ -60,6 +64,12 @@
      if lib[0:2] == "-W":
          # Skip linker flags
          continue
 +    if lib[0:2] == "-z":
 +	skip_next_keyword = 1
++	continue
++    if lib[0:8] == "-pthread":
++	library_dirs.append("-lpthread")
 +	continue
      print "Unknown entry '%s' in $LIBS variable passed to setup.py" % lib
      sys.exit(1)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/samba-setup-python.patch?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list