diff --git a/deps/sqlite3.gyp b/deps/sqlite3.gyp index aa24897d1..9d7e9fcaf 100755 --- a/deps/sqlite3.gyp +++ b/deps/sqlite3.gyp @@ -79,7 +79,10 @@ 'SQLITE_ENABLE_RTREE' ], }, - 'cflags_cc': ['-Wno-unused-value'], + 'cflags_cc': [ + '-Wno-unused-value', + '-include ../src/gcc-preinclude.h' + ], 'defines': [ '_REENTRANT=1', 'SQLITE_THREADSAFE=1', diff --git a/src/gcc-preinclude.h b/src/gcc-preinclude.h new file mode 100644 index 000000000..c515fa631 --- /dev/null +++ b/src/gcc-preinclude.h @@ -0,0 +1,4 @@ + +// https://rjpower9000.wordpress.com/2012/04/09/fun-with-shared-libraries-version-glibc_2-14-not-found/ + +__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");