File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1021,13 +1021,16 @@ def do_custom_build(self):
1021
1021
raise IOError ("{0} does not match expected hash." .format (tarball ))
1022
1022
1023
1023
print ("Building {0}" .format (tarball ))
1024
+ cflags = 'CFLAGS="{0} -fPIC" ' .format (os .environ .get ('CFLAGS' , '' ))
1025
+
1024
1026
subprocess .check_call (
1025
1027
['tar zxf {0}' .format (tarball )], shell = True , cwd = 'build' )
1026
1028
subprocess .check_call (
1027
- ['CFLAGS=-fPIC ./configure --without-zlib --without-bzip2 --without-png' ],
1029
+ [cflags +
1030
+ './configure --without-zlib --without-bzip2 --without-png' ],
1028
1031
shell = True , cwd = src_path )
1029
1032
subprocess .check_call (
1030
- ['CFLAGS=-fPIC make' ], shell = True , cwd = src_path )
1033
+ [cflags + ' make' ], shell = True , cwd = src_path )
1031
1034
1032
1035
1033
1036
class FT2Font (SetupPackage ):
You can’t perform that action at this time.
0 commit comments