Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
1d62f562
Commit
1d62f562
authored
Feb 15, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol-python/setup.py: do not use PIC libraries on win32 and darwin-ppc
parent
708b80c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
bindings/mediacontrol-python/setup.py
bindings/mediacontrol-python/setup.py
+12
-2
No files found.
bindings/mediacontrol-python/setup.py
View file @
1d62f562
from
distutils.core
import
setup
,
Extension
import
os
if
os
.
sys
.
platform
in
(
'win32'
,
'darwin'
):
# Do not use PIC version on win32 and Mac OS X
vlclib
=
'../../lib/libvlc.a'
picflag
=
''
else
:
vlclib
=
'../../lib/libvlc_pic.a'
picflag
=
'pic'
def
get_vlcconfig
():
vlcconfig
=
None
for
n
in
(
'vlc-config'
,
...
...
@@ -40,7 +48,9 @@ def get_ldflags():
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
())
ldflags
.
extend
(
os
.
popen
(
'%s --libs vlc %s builtin'
%
(
vlcconfig
,
picflag
),
'r'
).
readline
().
rstrip
().
split
())
if
os
.
sys
.
platform
==
'darwin'
:
ldflags
.
append
(
'-lstdc++'
)
return
ldflags
...
...
@@ -50,7 +60,7 @@ vlclocal = Extension('vlc',
sources
=
[
'vlcglue.c'
,
'../../src/control/mediacontrol_init.c'
],
include_dirs
=
[
'../../include'
,
'../../'
,
'/usr/win32/include'
],
extra_objects
=
[
'../../lib/libvlc_pic.a'
],
extra_objects
=
[
vlclib
],
extra_compile_args
=
get_cflags
(),
extra_link_args
=
[
'-L../..'
]
+
get_ldflags
(),
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment