From da0800bf8be009e7b356022312761aa3117208de Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 13 Jan 2014 14:49:52 -0800 Subject: [PATCH] attempt to solve 'GLIBC_2.14 not found' problem with older glic - refs #244 --- deps/sqlite3.gyp | 5 ++++- src/gcc-preinclude.h | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/gcc-preinclude.h 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");