File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -681,6 +681,19 @@ _tkinter:
681681  links :
682682    - tcl8.6 
683683    - tk8.6 
684+   links-conditional :
685+     - name : X11 
686+       targets :
687+         - .*-unknown-linux-.* 
688+       build-mode : static 
689+     - name : xcb 
690+       targets :
691+         - .*-unknown-linux-.* 
692+       build-mode : static 
693+     - name : Xau 
694+       targets :
695+         - .*-unknown-linux-.* 
696+       build-mode : static 
684697
685698_tokenize :
686699  minimum-python-version : " 3.11" 
Original file line number Diff line number Diff line change @@ -535,7 +535,12 @@ def derive_setup_local(
535535                python_version , entry .get ("maximum-python-version" , "100.0" )
536536            )
537537
538-             if  target_match  and  (python_min_match  and  python_max_match ):
538+             if  build_mode  :=  entry .get ("build-mode" ):
539+                 build_mode_match  =  section  ==  build_mode 
540+             else :
541+                 builD_mode_match  =  True 
542+ 
543+             if  target_match  and  python_min_match  and  python_max_match  and  build_mode_match :
539544                if  source  :=  entry .get ("source" ):
540545                    line  +=  f" { source }  " 
541546                for  source  in  entry .get ("sources" , []):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments