Ben Noordhuis
b1cce04646
build: rename strict_aliasing to node_no_strict_aliasing
Make the variable naming consistent with the other strict aliasing var,
v8_no_strict_aliasing.
13 years ago
Robert Mustacchi
f62441367f
x64 target should always pass -m64
13 years ago
Bert Belder
51e66ec410
Windows: turn off /Gm
Otherwise multicode compile doesn't work.
13 years ago
Ben Noordhuis
2639566c6e
build: configure openssl
* compile with -DOPENSSL_NO_SOCK and -DOPENSSL_NO_DGRAM, we don't need it
* compile with -DOPENSSL_NO_GOST and -DOPENSSL_NO_HW_PADLOCK, works around the
brain dead linker on solaris and maybe others
* compile with -DTERMIOS, OS X doesn't have <termio.h>
* compile with -D__EXTENSIONS__ on solaris, makes siginfo_t available
* compile without -ansi on linux, it hides a number of POSIX declarations
(sigaction, NI_MAXHOST, etc.)
13 years ago
Nathan Rajlich
7b71fd0c68
build: add comment explaining MACOSX_DEPLOYMENT_TARGET.
13 years ago
Nathan Rajlich
70a5b53e03
Re-apply "build: target OSX 10.5 when building on darwin"
This reverts commit 93eca95aec
.
Fixes #3072 (once again).
13 years ago
isaacs
93eca95aec
Revert "build: target OSX 10.5 when building on darwin"
This reverts commit b6d6a54f80
,
which fixed #3072 , so we'll have to figure out another way
to make that work.
13 years ago
Nathan Rajlich
b6d6a54f80
build: target OSX 10.5 when building on darwin
13 years ago
Bert Belder
930fabe43f
Disable V8 postmortem debugging on Windows
It is not supported by V8.
13 years ago
Ben Noordhuis
92c0c6953a
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
Fixes #2061 .
13 years ago
Dave Pacheco
cc15299c32
build: add support for DTrace and postmortem
* fixes #2110
* includes V8 postmortem metadata in Solaris builds
* adds GYP support for DTrace probes and ustack helper
* ustack helper derives constants dynamically from libv8_base.a
* build with DTrace support by default on SunOS
13 years ago
Ben Noordhuis
30b29d8f87
build: disable -fstrict-aliasing if gcc < 4.6.0
A compiler bug in older versions of gcc makes it do unsafe optimizations at -O1
and higher. This manifested itself with (at least) gcc 4.5.2 on SmartOS because
it made V8 hang in a busy loop.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45883
13 years ago
Shigeki Ohtsu
82ad1f87fa
Fix #2830 for the old gcc bug on SmartOS
13 years ago
Nathan Rajlich
3c68c85f18
build: use -pthreads (not -pthread) on Solaris
13 years ago
Shigeki Ohtsu
491ec171ec
build: change default BUILDTYPE of gyp to Release
13 years ago
Shigeki Ohtsu
58e5d69250
build: fix the case where config.gypi doesn't exist
13 years ago
Shigeki Ohtsu
680d75af34
build: make default_configuration consistent with BUILDTYPE
13 years ago
Nathan Rajlich
546870edd8
build: use proper `-arch` for target_arch on OS X
13 years ago
Dave Pacheco
7864bb9eb8
build: disable -fomit-frame-pointer on solaris
This "optimization" cripples debuggability and has dubious performance value,
so we want to disable it at least on SmartOS.
13 years ago
Nathan Rajlich
71e975669c
Default to static linking CRT on Windows.
13 years ago
Igor Zinkovsky
0a347559bf
enable x64 windows build
use "vcbuild x64" to do x64 build of node.exe
13 years ago
Bert Belder
2e2df04b35
Windows: disable RTTI and exceptions
13 years ago
Ben Noordhuis
03c4aa6aef
build: don't set -mmacosx-version-min
It sets __MAC_OS_X_VERSION_MIN_REQUIRED__, which is what we use for feature
detection.
13 years ago
Ben Noordhuis
6b5853794d
build: disable NDEBUG in release builds for now
assert() sanity checks are a good thing.
13 years ago
Shigeki Ohtsu
55c21970fd
build: compile without -fvisibility=hidden
Fixes symbol lookup errors when loading an addon module on Linux.
13 years ago
Ryan Dahl
7edfb02984
Remove visibility=hidden options from common.gypi
Not necessary and preventing addon loading.
13 years ago
Ryan Dahl
c65a91c96f
GYP: don't build V8 twice
13 years ago
Ben Noordhuis
bbd976b8c4
build: always compile with large file support
Fixes a nasty sizeof(struct stat) mismatch bug that caused random crashes and
silent memory corruption.
13 years ago
Ben Noordhuis
1cf13bca19
build: compile with -D__DARWIN_64_BIT_INO_T on OS X
Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.
Fixes #2061 for gyp builds. Solution proposed by Paddy Byers.
13 years ago
Bert Belder
4a1efb2b9c
Support native extension loading on Windows
13 years ago
Peter Bright
766430c743
Windows: set executables to be console programs
closes #1644
14 years ago
Ryan Dahl
85f7b78e9b
gyp: Further fixes to target_defaults for mac
14 years ago
Evan Martin
8a29e5ea5b
gyp: Don't pass C++ flags to C compiler, and don't pass -ansi in OpenSSL builds.
14 years ago
Evan Martin
a916d888f2
common.gypi: don't nest "target_defaults" within "target_defaults"
The "conditions" block is already within a "target_defaults", so its
children amend target default settings already.
14 years ago
Ryan Dahl
b433c42a56
gyp: Support Linux
14 years ago
Ryan Dahl
25a5e90289
Fix GYP build on OSX
Broken due to DOS line endings.
./configure-gyp
make -f Makefile-gyp
14 years ago
Peter Bright
16788f461a
Rename gyp files to produce useful solution names.
Hoist common settings into common.gypi.
Restrict v8's common.gypi to v8 projects.
Ensure v8 doesn't use /MP in debug builds.
Add basic settings for other platforms.
Make uv import common.gypi properly.
Remove LTCG warning.
14 years ago