File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -843,26 +843,26 @@ def configure_library(lib, output):
843843  if  getattr (options , shared_lib ):
844844    (pkg_libs , pkg_cflags , pkg_libpath ) =  pkg_config (lib )
845845
846-     if  pkg_cflags :
846+     if  options .__dict__ [shared_lib  +  '_includes' ]:
847+       output ['include_dirs' ] +=  [options .__dict__ [shared_lib  +  '_includes' ]]
848+     elif  pkg_cflags :
847849      output ['include_dirs' ] +=  (
848850          filter (None , map (str .strip , pkg_cflags .split ('-I' ))))
849-     elif  options .__dict__ [shared_lib  +  '_includes' ]:
850-       output ['include_dirs' ] +=  [options .__dict__ [shared_lib  +  '_includes' ]]
851851
852852    # libpath needs to be provided ahead libraries 
853-     if  pkg_libpath :
854-       output ['libraries' ] +=  [pkg_libpath ]
855-     elif  options .__dict__ [shared_lib  +  '_libpath' ]:
853+     if  options .__dict__ [shared_lib  +  '_libpath' ]:
856854      output ['libraries' ] +=  [
857855          '-L%s'  %  options .__dict__ [shared_lib  +  '_libpath' ]]
856+     elif  pkg_libpath :
857+       output ['libraries' ] +=  [pkg_libpath ]
858858
859859    default_libs  =  getattr (options , shared_lib  +  '_libname' )
860860    default_libs  =  map ('-l{0}' .format , default_libs .split (',' ))
861861
862-     if  pkg_libs :
863-       output ['libraries' ] +=  pkg_libs .split ()
864-     elif  default_libs :
862+     if  default_libs :
865863      output ['libraries' ] +=  default_libs 
864+     elif  pkg_libs :
865+       output ['libraries' ] +=  pkg_libs .split ()
866866
867867
868868def  configure_v8 (o ):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments