Commit 1dc2981a by Dane Springmeyer Committed by GitHub

Merge pull request #875 from mapbox/memcpy-on-travis

Fix logic to allow binaries to run on old centos
parents a18ca2e0 11fd190b
...@@ -132,9 +132,10 @@ before_script: ...@@ -132,9 +132,10 @@ before_script:
fi fi
script: script:
- export CXXFLAGS="${CXXFLAGS:-} -include $(pwd)/src/gcc-preinclude.h"
- if [[ "${NODE_VERSION}" ]]; then ./scripts/build_against_node.sh; fi; - if [[ "${NODE_VERSION}" ]]; then ./scripts/build_against_node.sh; fi;
- nm lib/binding/*/node_sqlite3.node | grep "GLIBCXX_" || true - nm lib/binding/*/node_sqlite3.node | grep "GLIBCXX_" | c++filt || true
- nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" || true - nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true
- if [[ "${NODE_VERSION}" -eq "4" ]]; then ./node_modules/.bin/eslint lib; fi; - if [[ "${NODE_VERSION}" -eq "4" ]]; then ./node_modules/.bin/eslint lib; fi;
# disabled for now: need to port to sudo:false # disabled for now: need to port to sudo:false
#- if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi; #- if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi;
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
} }
] ]
], ],
"cflags": [ "-include ../src/gcc-preinclude.h" ],
"sources": [ "sources": [
"src/database.cc", "src/database.cc",
"src/node_sqlite3.cc", "src/node_sqlite3.cc",
......
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
'dependencies': [ 'dependencies': [
'action_before_build' 'action_before_build'
], ],
'cflags': [ '-include ../src/gcc-preinclude.h' ],
'sources': [ 'sources': [
'<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
], ],
...@@ -87,8 +86,7 @@ ...@@ -87,8 +86,7 @@
], ],
}, },
'cflags_cc': [ 'cflags_cc': [
'-Wno-unused-value', '-Wno-unused-value'
'-include ../src/gcc-preinclude.h'
], ],
'defines': [ 'defines': [
'_REENTRANT=1', '_REENTRANT=1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment