Commit ab75c697 authored by Olivier Aubert's avatar Olivier Aubert

bindings/python/setup.py: Mac OS X build fixes (link parameters)

parent b46b7ffc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment