Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c2af9c6

Browse filesBrowse files
committed
Amend, rather than override, CFLAGS
1 parent d102d39 commit c2af9c6
Copy full SHA for c2af9c6

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,13 +996,16 @@ def do_custom_build(self):
996996
raise IOError("{0} does not match expected hash.".format(tarball))
997997

998998
print("Building {0}".format(tarball))
999+
cflags = 'CFLAGS="{0} -fPIC" '.format(os.environ.get('CFLAGS', ''))
1000+
9991001
subprocess.check_call(
10001002
['tar zxf {0}'.format(tarball)], shell=True, cwd='build')
10011003
subprocess.check_call(
1002-
['CFLAGS=-fPIC ./configure --without-zlib --without-bzip2 --without-png'],
1004+
[cflags +
1005+
'./configure --without-zlib --without-bzip2 --without-png'],
10031006
shell=True, cwd=src_path)
10041007
subprocess.check_call(
1005-
['CFLAGS=-fPIC make'], shell=True, cwd=src_path)
1008+
[cflags + 'make'], shell=True, cwd=src_path)
10061009

10071010

10081011
class FT2Font(SetupPackage):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.