]> git.sesse.net Git - vlc/blobdiff - bindings/python/setup.py
python: workaround a vlc-config issue on win32 (reported by <nicola.murino@gmail...
[vlc] / bindings / python / setup.py
index e26f71528d629b9c14ef5cb48a6deb187ada4a67..88e18fc3591aeebee2acdff45e422b00ba11df44 100644 (file)
@@ -70,6 +70,10 @@ def get_ldflags():
                                 'r').readline().rstrip().split())
        if os.sys.platform == 'darwin':
            ldflags.append('-lstdc++')
+        if not '-lvlc' in ldflags:
+            # Some broken vlc-config can exist (esp. on win32). Try to
+            # workaround the problem.
+            ldflags.append('-lvlc')
         return ldflags
 
 #source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c',