File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -618,12 +618,15 @@ def do_custom_build(self, env):
618
618
},
619
619
}
620
620
env ["CFLAGS" ] = env .get ("CFLAGS" , "" ) + " -fPIC"
621
- subprocess .check_call (
622
- ["./configure" , "--with-zlib=no" , "--with-bzip2=no" ,
623
- "--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
624
- "--disable-shared" ,
625
- "--host=" + sysconfig .get_config_var ('BUILD_GNU_TYPE' )],
626
- env = env , cwd = src_path )
621
+ configure = [
622
+ "./configure" , "--with-zlib=no" , "--with-bzip2=no" ,
623
+ "--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
624
+ "--disable-shared"
625
+ ]
626
+ host = sysconfig .get_config_var ('BUILD_GNU_TYPE' )
627
+ if host is not None : # May be unset on PyPy.
628
+ configure .append (f"--host={ host } " )
629
+ subprocess .check_call (configure , env = env , cwd = src_path )
627
630
if 'GNUMAKE' in env :
628
631
make = env ['GNUMAKE' ]
629
632
elif 'MAKE' in env :
You can’t perform that action at this time.
0 commit comments