diff options
author | Chris Want <cwant@ualberta.ca> | 2003-01-01 05:07:47 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2003-01-01 05:07:47 +0300 |
commit | d52deb43971a3d90def169b4706433e407158506 (patch) | |
tree | 7bf9f31ea65243e06fa247e58b72a6939ef44340 /intern/python | |
parent | e67802264a1274167494d770ff66c110d1cd5998 (diff) |
A kludge to use the right compiler while freezing
using gcc under Irix -- without this it uses only
'cc -n32' (since this is what the sgi employee
who compiled the python stuff used).
Chris
Diffstat (limited to 'intern/python')
-rwxr-xr-x | intern/python/freeze/freeze_ac.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/python/freeze/freeze_ac.py b/intern/python/freeze/freeze_ac.py index c714cf1ae69..4032e4cdb51 100755 --- a/intern/python/freeze/freeze_ac.py +++ b/intern/python/freeze/freeze_ac.py @@ -430,6 +430,13 @@ def main(): somevars[key] = makevars[key] somevars['CFLAGS'] = string.join(cflags) # override + + # a kludge for Irix gcc builds + irixgcccheck = parsesetup.getmakevars('Makefile') + if (string.find(irixgcccheck['host_triplet'],'irix') != -1): + if (string.find(irixgcccheck['CC'],'gcc') != -1): + somevars['CC'] = 'gcc' + files = ['$(OPT)', '$(LDFLAGS)', base_config_c, base_frozen_c] + \ files + supp_sources + addfiles + libs + \ ['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)'] |