Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2003-01-01 05:07:47 +0300
committerChris Want <cwant@ualberta.ca>2003-01-01 05:07:47 +0300
commitd52deb43971a3d90def169b4706433e407158506 (patch)
tree7bf9f31ea65243e06fa247e58b72a6939ef44340 /intern/python
parente67802264a1274167494d770ff66c110d1cd5998 (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-xintern/python/freeze/freeze_ac.py7
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)']