From: Olivier Aubert Date: Mon, 19 Dec 2005 14:23:25 +0000 (+0000) Subject: bindings/python/setup.py: Mac OS X build fixes (link parameters) X-Git-Tag: 0.9.0-test0~12838 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ab75c697fb9ebe0382836d48a5efde019acfa87b;p=vlc bindings/python/setup.py: Mac OS X build fixes (link parameters) --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index da7ed98520..943baba83b 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -37,7 +37,12 @@ def get_ldflags(): return [] else: os.environ['top_builddir'] = '../..' - ldflags=os.popen('%s --libs vlc pic builtin' % vlcconfig, 'r').readline().rstrip().split() + ldflags = [] + if os.sys.platform == 'darwin': + ldflags = "-read_only_relocs warning".split() + ldflags.extend(os.popen('%s --libs vlc pic builtin' % vlcconfig, 'r').readline().rstrip().split()) + if os.sys.platform == 'darwin': + ldflags.append('-lstdc++') return ldflags # To compile in a local vlc tree