diff options
author | Ryan <ry@tinyclouds.org> | 2009-09-05 14:13:06 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-09-05 14:40:12 +0200 |
commit | ea29e137b5a9acda27bd9601448639aacfc1cd9e (patch) | |
tree | 049a2745d33202f5536fe6ed65ac1107eb6c0661 | |
parent | 485a9c148717b8e67376559b82ca833bbe7a0de0 (diff) | |
download | node-new-ea29e137b5a9acda27bd9601448639aacfc1cd9e.tar.gz |
Hack for compiling on Snow Leopard.
I don't have access to this OS to fix the issue properly, so for the moment
I'm reverting back to 32bit build on Darwin. We changed to native 64bit in
8ddf930901c03a0a6c03b8da22da6f7b35f445af.
Thanks to Johan Dahlberg and Tim Caswell for reporting and debugging this.
-rwxr-xr-x | deps/udns/configure | 6 | ||||
-rw-r--r-- | wscript | 24 |
2 files changed, 30 insertions, 0 deletions
diff --git a/deps/udns/configure b/deps/udns/configure index 1cbac6b308..afc377a671 100755 --- a/deps/udns/configure +++ b/deps/udns/configure @@ -142,6 +142,12 @@ else EOF fi +# HACK FIXME - use 32bit on Mac +os=`uname -s`; +if [ $os = "Darwin" ]; then + CFLAGS="$CFLAGS -m32" +fi + ac_config_h ac_output Makefile ac_msg "creating config.status" @@ -99,12 +99,24 @@ def configure(conf): debug_env.set_variant('debug') debug_env.append_value('CCFLAGS', ['-DDEBUG', '-g', '-O0', '-Wall', '-Wextra']) debug_env.append_value('CXXFLAGS', ['-DDEBUG', '-g', '-O0', '-Wall', '-Wextra']) + + # HACK FIXME - use 32bit on Mac + if platform.system() == "Darwin": + debug_env.append_value('CCFLAGS', '-m32') + debug_env.append_value('CXXFLAGS', '-m32') + conf.write_config_header("config.h") # Configure default variant conf.setenv('default') conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O3']) conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O3']) + + # HACK FIXME - use 32bit on Mac + if platform.system() == "Darwin": + conf.env.append_value('CCFLAGS', '-m32') + conf.env.append_value('CXXFLAGS', '-m32') + conf.write_config_header("config.h") def build_udns(bld): @@ -166,6 +178,9 @@ def build_v8(bld): if GuessArchitecture() == "x64": arch = "arch=x64" + # HACK FIXME - use 32bit on Mac + if platform.system() == "Darwin": arch = "arch=ia32"; + v8 = bld.new_task_gen( target = join("deps/v8", bld.env["staticlib_PATTERN"] % "v8"), rule=v8rule % (v8dir_tgt, scons, "release", arch), @@ -177,6 +192,10 @@ def build_v8(bld): bld.env_of_name('default')["LIBPATH_V8"] = v8dir_tgt bld.env_of_name('default')["LINKFLAGS_V8"] = ["-pthread"] + # HACK FIXME - use 32bit on Mac + if platform.system() == "Darwin": + bld.env_of_name('default')["LINKFLAGS_V8"] = ["-pthread", "-m32"] + ### v8 debug if bld.env["USE_DEBUG"]: deps_tgt = join(bld.srcnode.abspath(bld.env_of_name("debug")),"deps") @@ -186,6 +205,11 @@ def build_v8(bld): bld.env_of_name('debug')["STATICLIB_V8"] = "v8_g" bld.env_of_name('debug')["LIBPATH_V8"] = v8dir_tgt bld.env_of_name('debug')["LINKFLAGS_V8"] = ["-pthread"] + + # HACK FIXME - use 32bit on Mac + if platform.system() == "Darwin": + bld.env_of_name('debug')["LINKFLAGS_V8"] = ["-pthread", "-m32"] + v8_debug.rule = v8rule % (v8dir_tgt, scons, "debug", arch) v8_debug.target = join("deps/v8", bld.env["staticlib_PATTERN"] % "v8_g") |