From d52deb43971a3d90def169b4706433e407158506 Mon Sep 17 00:00:00 2001 From: Chris Want Date: Wed, 1 Jan 2003 02:07:47 +0000 Subject: [PATCH] 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 --- intern/python/freeze/freeze_ac.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)']