diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-08-16 14:55:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-08-16 16:46:55 +0200 |
commit | ae01c323cbc1e419b5781417fa2fac06b15efaea (patch) | |
tree | 3f3a2be968fa7c825d7991f803d943e808150b8c /cpp/makebindist.py | |
parent | Fixed bug 2330 (diff) | |
download | ice-ae01c323cbc1e419b5781417fa2fac06b15efaea.tar.bz2 ice-ae01c323cbc1e419b5781417fa2fac06b15efaea.tar.xz ice-ae01c323cbc1e419b5781417fa2fac06b15efaea.zip |
Fixed bug 2321
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-x | cpp/makebindist.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py index a205eb4f9e4..e76f54741d8 100755 --- a/cpp/makebindist.py +++ b/cpp/makebindist.py @@ -700,14 +700,19 @@ def makeInstall(sources, buildDir, installDir, distro, clean, version, mmVersion logging.info('PYTHON_HOME is not set, figuring it out and trying that') pyHome = sys.exec_prefix os.environ['PYTHON_HOME'] = pyHome - + + if getPlatform() == 'macosx': + make = "make" + else: + make = "gmake" + # # XXX- Optimizations need to be turned on for the release. # try: - runprog('gmake NOGAC=yes OPTIMIZE=yes prefix=%s embedded_runpath_prefix=/opt/Ice-%s install' % (installDir, mmVersion)) + runprog(make + ' NOGAC=yes OPTIMIZE=yes prefix=%s embedded_runpath_prefix=/opt/Ice-%s install' % (installDir, mmVersion)) except ExtProgramError: - print "gmake failed for makeInstall(%s, %s, %s, %s, %s, %s, %s)" % (sources, buildDir, installDir, distro, str(clean), version, mmVersion) + print make + " failed for makeInstall(%s, %s, %s, %s, %s, %s, %s)" % (sources, buildDir, installDir, distro, str(clean), version, mmVersion) raise runprog('rm -rf /opt/Ice-%s' % (mmVersion), False) |