[PATCH] Python bindings: Don't choke if LIBS flag contains -pie

Steve Langasek vorlon at debian.org
Mon May 14 23:09:32 GMT 2007


Hi Ismail,

On Tue, May 15, 2007 at 01:44:58AM +0300, Ismail Dönmez wrote:
> Current 3.0.25 release chokes on python bindings if LIBS variable 
> contains -pie. Attached patch fixes it. Please apply.

> --- source/python/setup.py	2006-02-20 22:33:20.000000000 +0200
> +++ source/python/setup.py	2007-05-15 01:21:26.000000000 +0300
> @@ -73,6 +73,8 @@
>          pass # Skip linker flags
>      elif lib[0:2] == "-z":
>          next_is_flag = 1 # Skip linker flags
> +    elif lib == "-pie":
> +        next_is_flag = 1 # Skip linker flags
>      else:
>          print "Unknown entry '%s' in $LIBS variable passed to setup.py" % lib
>          sys.exit(1)

Don't you actually want 'pass' here, since -pie doesn't take an argument?

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/


More information about the samba-technical mailing list