]> git.sesse.net Git - vlc/commitdiff
python: workaround a vlc-config issue on win32 (reported by <nicola.murino@gmail...
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Thu, 3 Sep 2009 11:38:47 +0000 (13:38 +0200)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Thu, 3 Sep 2009 15:22:45 +0000 (17:22 +0200)
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',