Browse Source

Patch v8 build for solaris

Submitted this patch to V8
http://codereview.chromium.org/1990010/show
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
35dd0fb271
  1. 3
      deps/v8/SConstruct
  2. 6
      deps/v8/src/platform.h

3
deps/v8/SConstruct

@ -179,6 +179,9 @@ LIBRARY_FLAGS = {
'CCFLAGS': ['-ansi'], 'CCFLAGS': ['-ansi'],
}, },
'os:solaris': { 'os:solaris': {
# On Solaris, to get isinf, INFINITY, fpclassify and other macros one
# needs to define __C99FEATURES__.
'CPPDEFINES': ['__C99FEATURES__'],
'CPPPATH' : ['/usr/local/include'], 'CPPPATH' : ['/usr/local/include'],
'LIBPATH' : ['/usr/local/lib'], 'LIBPATH' : ['/usr/local/lib'],
'CCFLAGS': ['-ansi'], 'CCFLAGS': ['-ansi'],

6
deps/v8/src/platform.h

@ -44,12 +44,6 @@
#ifndef V8_PLATFORM_H_ #ifndef V8_PLATFORM_H_
#define V8_PLATFORM_H_ #define V8_PLATFORM_H_
#ifdef __sun
// On Solaris, to get isinf, INFINITY, fpclassify and other macros one needs
// to define this symbol
#define __C99FEATURES__ 1
#endif
#define V8_INFINITY INFINITY #define V8_INFINITY INFINITY
// Windows specific stuff. // Windows specific stuff.

Loading…
Cancel
Save