Commit ba86b2ea by Ben Noordhuis

Fix undefined memcpy@@GLIBC_2.14 runtime error

Pre-include gcc-preinclude.h in a few more places to ensure that we
don't pick up a reference to the memcpy@@GLIBC_2.14 symbol.

Fixes add-on loading on systems with an old glibc, such as RHEL <= 6.

Closes out mapbox/node-sqlite3#433.
parent 05db32d5
......@@ -31,6 +31,7 @@
}
]
],
"cflags": [ "-include ../src/gcc-preinclude.h" ],
"sources": [
"src/database.cc",
"src/node_sqlite3.cc",
......
......@@ -71,6 +71,7 @@
'dependencies': [
'action_before_build'
],
'cflags': [ '-include ../src/gcc-preinclude.h' ],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
],
......
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