Commit 23cdbc02 authored by Olivier Aubert's avatar Olivier Aubert

python/setup.py: use PIC versions of the libraries (patch by Filippo Carone)

parent e0de322a
......@@ -37,7 +37,7 @@ def get_ldflags():
return []
else:
os.environ['top_builddir'] = '../..'
ldflags=os.popen('%s --libs vlc builtin' % vlcconfig, 'r').readline().rstrip().split()
ldflags=os.popen('%s --libs vlc pic builtin' % vlcconfig, 'r').readline().rstrip().split()
return ldflags
# To compile in a local vlc tree
......@@ -45,7 +45,7 @@ vlclocal = Extension('vlc',
sources = ['vlcglue.c',
'../../src/control/init.c'],
include_dirs = ['../../include', '../../', '/usr/win32/include' ],
extra_objects = [ '../../lib/libvlc.a' ],
extra_objects = [ '../../lib/libvlc_pic.a' ],
extra_compile_args = get_cflags(),
extra_link_args = [ '-L../..' ] + get_ldflags(),
)
......
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