Commit Graph

21 Commits

Author SHA1 Message Date
Ben Noordhuis
712835a673 build: remove GCC_WARN_ABOUT_MISSING_NEWLINE
Not compatible with non-Apple gcc builds.  Fixes the following build
error:

    gcc-4.8: error: unrecognized command line option '-Wnewline-eof'
2013-09-05 21:33:59 +02:00
Ben Noordhuis
a0bc4cca74 build: darwin: disable -fstrict-aliasing warnings
gcc 4.2.1 as shipped with Xcode complains incessantly about aliasing
warnings, which, while technically true, disregards the fact that the
aliased types have the same layout in memory. Squelch the warnings.
2013-06-26 13:13:53 +02:00
Timothy J Fontaine
0da533e84f sunos: re-export entire library when static
This is useful to make sure linker doesn't strip things like dtrace
2013-04-10 14:10:05 +02:00
Timothy J Fontaine
e294975bb4 build: gyp disable thin archives
Thin archives aren't available on all platforms, notably smartos
2013-04-10 14:10:05 +02:00
Ben Noordhuis
6ba6f4b4d6 build: turn on strict aliasing in release builds 2013-02-25 03:43:03 +01:00
Ben Noordhuis
0761fb51b2 build: support 64 bits darwin builds
Before this commit, gyp built 32 bits versions of libuv exclusively.

Enable with:

  $ ./gyp_uv -Dtarget_arch=x64
2013-02-24 02:24:09 +01:00
Ben Noordhuis
d8de4fbd13 build: compile with -fwrapv in debug mode 2012-10-15 00:52:27 +02:00
Luigi Grilli
5bfb7c917b windows: build system improvements
* Add shared/static library option
* Add x86/x64 target option
* Improve Visual Studio detection
* Set GYP_MSVS_VERSION to pick VS2010 over VS2008

Closes GH-504
Closes GH-514
2012-09-21 00:53:55 +02:00
Ben Noordhuis
2c3e8b6aa6 build: rework -fvisibility=hidden detection
Make the gcc_version macro conform with what node.js and v8 use. Important
because node.js's common.gypi is going to export it soon.
2012-08-13 15:29:21 +02:00
Ben Noordhuis
5b8a1127fe darwin: compile at -O0 in debug builds 2012-06-29 02:27:20 +02:00
Bert Belder
b386c44e5e Windows: always enable multicore compile 2012-04-29 02:18:17 +02:00
Bert Belder
0c32087973 Windows: disable minimal rebuild (/Gm)
If enabled multicore compile doesn't work.
2012-04-29 02:08:25 +02:00
Ben Noordhuis
32b291d5be build: don't set -mmacosx-version-min
It sets __MAC_OS_X_VERSION_MIN_REQUIRED__, which is what we use for feature
detection.
2012-01-19 16:20:44 +01:00
Carter Allen
1393ee7d26 build: remove hard-coded GCC_VERSION setting (OS X/XCode) 2011-11-03 12:19:34 +01:00
Ben Noordhuis
3ecb319128 build: sunos expects -pthreads, not -pthread 2011-10-25 23:52:03 +00:00
Ben Noordhuis
cb6cd92305 build: fix gcc 3.x build
Detect gcc version, -fvisibility is a gcc 4.x switch.
2011-10-25 23:52:03 +00:00
Ryan Dahl
2c0179197f Make libev verify itself in debug build 2011-09-26 21:07:05 -07:00
Ben Noordhuis
8f6f324746 build: use -m32 only when host_arch != target_arch
Unbreaks the gyp build on x86_64 linux systems.
2011-09-19 16:57:39 +02:00
Peter Bright
7db243dc6f Bring inline with node common.gypi.
Win32 readlink()
2011-09-04 13:24:45 -07:00
Peter Bright
2942f5a8cc GYP upates 2011-08-13 20:27:39 -07:00
Bert Belder
d3cc9a39ed Move gyp files to root 2011-08-10 22:58:00 +02:00