Changeset c2d31f450ee2f282e36d18f12fe19c4f3352e050

Show
Ignore:
Timestamp:
11/15/06 15:13:44 (2 years ago)
Author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr>
git-committer:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1163600024 +0000
git-parent:

[989bdaf62beb3c53deff9a5f15ef98dd644c3519]

git-author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1163600024 +0000
Message:

python/bindings/setup.py: fix python binding building (ref. r17640)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/python/setup.py

    r07a52db rc2d31f4  
    2121if not srcdir: 
    2222    srcdir = '.' 
    23  
    24 vlclib="-lvlc" 
    25 picflag='' 
    2623 
    2724def get_vlcconfig(): 
     
    5249        return [] 
    5350    else: 
    54         cflags=os.popen('%s --cflags' % vlcconfig, 'r').readline().rstrip().split() 
     51        cflags=os.popen('%s --cflags vlc' % vlcconfig, 'r').readline().rstrip().split() 
    5552        return cflags 
    5653 
     
    6360    if os.sys.platform == 'darwin': 
    6461        ldflags = "-read_only_relocs warning".split() 
    65         ldflags.extend(os.popen('%s --libs vlc %s' % (vlcconfig, 
    66                                   picflag),  
     62        ldflags.extend(os.popen('%s --libs vlc external' % vlcconfig, 
    6763                'r').readline().rstrip().split()) 
    6864    if os.sys.platform == 'darwin': 
     
    8177                                      srcdir, 
    8278                                      '/usr/win32/include' ], 
    83                 extra_objects = [ vlclib ], 
     79                extra_objects = [ ], 
    8480                extra_compile_args = get_cflags(), 
    85         extra_link_args = [ '-L' + os.path.join(top_builddir, 'src') ]  + get_ldflags(), 
     81        extra_link_args = [ '-L' + os.path.join(top_builddir, 'src', '.libs') ]  + get_ldflags(), 
    8682                ) 
    8783