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 @@ -996,13 +996,16 @@ def do_custom_build(self):
996
996
raise IOError ("{0} does not match expected hash." .format (tarball ))
997
997
998
998
print ("Building {0}" .format (tarball ))
999
+ cflags = 'CFLAGS="{0} -fPIC" ' .format (os .environ .get ('CFLAGS' , '' ))
1000
+
999
1001
subprocess .check_call (
1000
1002
['tar zxf {0}' .format (tarball )], shell = True , cwd = 'build' )
1001
1003
subprocess .check_call (
1002
- ['CFLAGS=-fPIC ./configure --without-zlib --without-bzip2 --without-png' ],
1004
+ [cflags +
1005
+ './configure --without-zlib --without-bzip2 --without-png' ],
1003
1006
shell = True , cwd = src_path )
1004
1007
subprocess .check_call (
1005
- ['CFLAGS=-fPIC make' ], shell = True , cwd = src_path )
1008
+ [cflags + ' make' ], shell = True , cwd = src_path )
1006
1009
1007
1010
1008
1011
class FT2Font (SetupPackage ):
You can’t perform that action at this time.
0 commit comments