summaryrefslogtreecommitdiff
path: root/common.gypi
Commit message (Collapse)AuthorAgeFilesLines
* build: don't enable --gc-sections on sunosBen Noordhuis2013-07-061-1/+3
| | | | | The SunOS linker doesn't support it. Fixes build breakage introduced in commit 9b3de60.
* build: remove --unsafe-optimizations flagBen Noordhuis2013-07-061-27/+8
| | | | | | | | | | | | | | | | | | | The previous commit removes our patch that builds V8 at -O2 rather than -O3 so there is not much point in keeping the configure switch around. The reason it did so was to work around an assortment of compiler and linker bugs. In particular, certain combinations of g++ and binutils generate bad or no code when -ffunction-sections or -finline-functions is enabled (which -O3 implicitly does.) It was quite the problem back in the day because everyone and his dog built from source. Now that we have prebuilt binaries and packages available, there is no longer a pressing need to be so accommodating. If you experience spurious (or possibly not so spurious) segmentation faults after this commit, you need to upgrade your compiler/linker toolchain.
* build: add android supportLinus MÃ¥rtensson2013-06-171-3/+11
| | | | | | | | | | | | | | | | | | | | | Resolves minor discrepancies between android and standard POSIX systems. In addition, some configure parameters were added, and a helper-script for android configuration. Ideally, this script should be merged into the standard configure script. To build for android, source the android-configure script with an NDK path: source ./android-configure ~/android-ndk-r8d This will create an android standalone toolchain and export the necessary environment parameters. After that, build as normal: make -j8 After the build, you should now have android-compatible NodeJS binaries.
* build: fix windows build, disable postmortemBen Noordhuis2013-04-041-1/+3
| | | | | | | Always define v8_postmortem_support, even if the platform does not support it. Commit d8852aa adds a rule that references it in node.gyp. Fixes the Windows build.
* Revert "build, windows: disable SEH"Bert Belder2013-03-051-1/+0
| | | | | This is no longer necessary - the underlying issue was fixed in 01fa5ee. This reverts commit d87904286024f5ceb6a2d0d5f17e919c775830a0.
* Merge remote-tracking branch 'origin/v0.8'Ben Noordhuis2013-02-281-0/+1
|\ | | | | | | | | | | | | | | | | Conflicts: AUTHORS ChangeLog deps/uv/src/unix/pipe.c lib/http.js src/node_version.h
| * build, windows: disable SEHBen Noordhuis2013-02-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn off safe exception handlers, they're incompatible with how openssl is compiled / linked under MSVS 2012. Addresses the following build error: openssl.lib(x86cpuid.obj) : error LNK2026: module unsafe for SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] openssl.lib(x86.obj) : error LNK2026: module unsafe for SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] # etc. etc. g:\jenkins\workspace\nodejs-oneoff\Release\node.exe : fatal error LNK1281: Unable to generate SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] Fixes #4242.
* | gyp: fix build with dtrace support on FreeBSDFedor Indutny2013-01-211-0/+3
| | | | | | | | | | Fix undefined reference to `gelf_getsym`... and other undefined symbols from libelf, by adding `-lelf` to linker options on FreeBSD.
* | build: disable use of thin archiveShigeki Ohtsu2012-11-211-0/+5
| | | | | | | | | | Thin archive needs binutils >= 2.19, disable it for supporting old ar even if static libraries are linked within a local build.
* | build: make python executable configurableBen Noordhuis2012-11-201-0/+1
| | | | | | | | | | | | Upstreamed in https://codereview.chromium.org/11418101/ Fixes #4287.
* | build: let xcode pick proper compilerTimothy J Fontaine2012-11-061-1/+0
| |
* | build: remove _LARGEFILE_SOURCE, _FILE_OFFSET_BITSBen Noordhuis2012-11-041-5/+0
| | | | | | | | | | Don't define the _LARGEFILE_SOURCE and _FILE_OFFSET_BITS flags, they're inherited from libuv now.
* | build: make debug build on os x compile at -O0Ben Noordhuis2012-11-021-0/+3
| | | | | | | | Set GCC_OPTIMIZATION_LEVEL explicitly, otherwise GYP defaults to -Os.
* | Merge branch 'v0.8'Bert Belder2012-08-281-2/+4
|\ \ | |/ | | | | | | | | | | Conflicts: ChangeLog deps/openssl/openssl.gyp src/node_version.h
| * build: compile with -fno-tree-sink if gcc <= 4.4Ben Noordhuis2012-08-271-0/+3
| | | | | | | | | | Fixes a 'pure virtual method called' run-time error with some versions of gcc on some platforms, notably ARM.
| * build: fix -fno-tree-vrp heuristicBen Noordhuis2012-08-271-1/+1
| | | | | | | | | | -fno-tree-vrp is a gcc only switch. Don't enable it when compiling with clang, it will only complain about -fno-tree-vrp being ignored.
| * build: don't use "-Wnewline-eof" on OS XNathan Rajlich2012-08-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | This is the only thing preventing a manually compiled version of GCC (rather than Apple's provided llvm-gcc or heavily modified gcc 4.2) from working properly, so we might as well enable support for that. With this patch I was able to compile node using a manually compiled gcc 4.7.1. Closes #3887.
* | build: compile with -Wextra -Wno-unused-parameterBen Noordhuis2012-08-221-1/+1
|/
* build: compile with -fno-tree-vrp when gcc >= 4.0Ben Noordhuis2012-08-131-1/+6
|
* build: unbreak ustack on smartosBen Noordhuis2012-07-191-7/+14
| | | | | | | | | | I disabled the -ffunction-sections and -fdata-sections switches in 202df30 because they're horribly buggy with some gcc/binutils combos. However, it turns out that the dtrace/ustack post-processing tool requires that V8 is compiled with said switches and was broken because of it. This commit turns them on again on SunOS systems. Let's hope for the best.
* build: link with -rdynamic, not -Wl,--export-dynamicBen Noordhuis2012-07-191-4/+1
| | | | The system linker on SunOS doesn't understand --export-dynamic.
* build: disable unsafe optimizationsBen Noordhuis2012-07-121-6/+14
| | | | | | | | | | | | | | | | Compile at -O2 and disable optimizations that trigger gcc bugs. Some people still reported mksnapshot crashes after commit b40f813 ("build: fix spurious mksnapshot crashes for good" - so much for that). Average performance of the -O2 binary is on par with the -O3 binary. Variance on the http_simple bytes/8 benchmark appears to be slightly greater but small enough that the possibly of it being noise cannot be excluded. The new binary very slightly but consistently outperforms the -O3 binary (by about 0.5%) on the mostly CPU-bound bytes/102400 benchmark. That could be an artifact of the system I benchmarked it on, a Core 2 Duo with a puny 32 kB of L1 instruction cache. The smaller binary seems to play nicer with the cache.
* build: fix spurious mksnapshot crashes for goodBen Noordhuis2012-07-111-5/+6
| | | | | | | | | | | | | | | | | | | | A variety of gcc bugs made mksnapshot crash with either a segmentation fault or a 'pure virtual method callled' run-time error. After much wailing and gnashing of teeth I managed to deduce that the bugs show up when: 1. gcc 4.5.2 for i386-pc-solaris2.11 is used and -fstrict-aliasing is enabled, or 2. gcc version 4.4.6 for x86_64-redhat-linux is used and -ffunction-sections -finline-functions at -O2 or higher is enabled Therefore, disable -ffunction-sections and -fdata-sections unconditionally and disable -fstrict-aliasing only on Solaris. The -ffunction-sections and -fdata-sections switches were nonsense anyway because we don't link with -Wl,--gc-sections.
* build: rename strict_aliasing to node_no_strict_aliasingBen Noordhuis2012-07-031-2/+2
| | | | | Make the variable naming consistent with the other strict aliasing var, v8_no_strict_aliasing.
* x64 target should always pass -m64Robert Mustacchi2012-06-071-0/+4
|
* Merge branch 'v0.6'Bert Belder2012-04-291-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: deps/uv/include/uv-private/uv-unix.h deps/uv/include/uv-private/uv-win.h deps/uv/src/uv-common.c deps/uv/src/win/fs.c src/process_wrap.cc
| * Windows: turn off /GmBert Belder2012-04-271-1/+1
| | | | | | | | Otherwise multicode compile doesn't work.
* | build: configure opensslBen Noordhuis2012-04-121-1/+0
| | | | | | | | | | | | | | | | | | | | * 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.)
* | build: add comment explaining MACOSX_DEPLOYMENT_TARGET.Nathan Rajlich2012-04-101-1/+1
| |
* | Re-apply "build: target OSX 10.5 when building on darwin"Nathan Rajlich2012-04-101-0/+1
| | | | | | | | | | | | This reverts commit 93eca95aece9804d22b012cc89487f4b0064a86d. Fixes #3072 (once again).
* | Revert "build: target OSX 10.5 when building on darwin"isaacs2012-04-081-1/+0
| | | | | | | | | | | | This reverts commit b6d6a54f8057d0adad13d4bcc11eb3f443079ddc, which fixed #3072, so we'll have to figure out another way to make that work.
* | build: target OSX 10.5 when building on darwinNathan Rajlich2012-04-051-0/+1
| |
* | Disable V8 postmortem debugging on WindowsBert Belder2012-04-031-1/+7
| | | | | | | | It is not supported by V8.
* | build: define _DARWIN_USE_64_BIT_INODE=1 on OS XBen Noordhuis2012-04-021-0/+1
| | | | | | | | | | | | | | Fixes a segmentation fault on some OS X systems due to sizeof(struct stat) mismatches. Fixes #2061.
* | build: add support for DTrace and postmortemDave Pacheco2012-04-011-0/+3
| | | | | | | | | | | | | | | | * 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
* | build: disable -fstrict-aliasing if gcc < 4.6.0Ben Noordhuis2012-03-021-9/+8
| | | | | | | | | | | | | | | | 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
* | Fix #2830 for the old gcc bug on SmartOSShigeki Ohtsu2012-02-271-5/+7
| |
* | build: use -pthreads (not -pthread) on SolarisNathan Rajlich2012-02-271-0/+6
| |
* | build: change default BUILDTYPE of gyp to ReleaseShigeki Ohtsu2012-02-231-1/+1
| |
* | build: fix the case where config.gypi doesn't existShigeki Ohtsu2012-02-231-0/+1
| |
* | build: make default_configuration consistent with BUILDTYPEShigeki Ohtsu2012-02-231-1/+0
| |
* | build: use proper `-arch` for target_arch on OS XNathan Rajlich2012-02-201-0/+8
| |
* | build: disable -fomit-frame-pointer on solarisDave Pacheco2012-02-181-1/+6
| | | | | | | | | | This "optimization" cripples debuggability and has dubious performance value, so we want to disable it at least on SmartOS.
* | Default to static linking CRT on Windows.Nathan Rajlich2012-02-151-14/+2
| |
* | Merge remote-tracking branch 'origin/v0.6'Ben Noordhuis2012-02-121-0/+15
|\ \ | |/ | | | | | | Conflicts: common.gypi
| * enable x64 windows buildIgor Zinkovsky2012-02-071-2/+15
| | | | | | | | use "vcbuild x64" to do x64 build of node.exe
* | Windows: disable RTTI and exceptionsBert Belder2012-02-061-0/+2
| |
* | build: don't set -mmacosx-version-minBen Noordhuis2012-01-311-1/+0
| | | | | | | | | | It sets __MAC_OS_X_VERSION_MIN_REQUIRED__, which is what we use for feature detection.
* | build: disable NDEBUG in release builds for nowBen Noordhuis2012-01-201-1/+1
| | | | | | | | assert() sanity checks are a good thing.
* | build: compile without -fvisibility=hiddenShigeki Ohtsu2012-01-051-3/+1
| | | | | | | | Fixes symbol lookup errors when loading an addon module on Linux.