diff options
-rwxr-xr-x | source3/python/setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/python/setup.py b/source3/python/setup.py index 18f1f2648a..ffdafd7087 100755 --- a/source3/python/setup.py +++ b/source3/python/setup.py @@ -63,8 +63,10 @@ for lib in string.split(samba_libs): next_is_flag = 0; elif lib == "-Wl,-rpath": next_is_path = 1; - elif lib[0:2] in ("-l","-pthread"): + elif lib[0:2] in ("-l"): libraries.append(lib[2:]) + elif lib[0:8] in ("-pthread"): + pass # Skip linker flags elif lib[0:2] == "-L": library_dirs.append(lib[2:]) elif lib[0:2] in ("-W","-s"): |