We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d8d2e6 commit 6f6056aCopy full SHA for 6f6056a
thirdparty/src/leveldb/build_detect_platform
@@ -190,6 +190,11 @@ EOF
190
COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX"
191
fi
192
193
+<<COMMENT
194
+# Disable snappy if statically linked to librime.
195
+# Work around https://github.com/rime/squirrel/pull/188
196
+# Otherwise librime may accidentally link to the snappy library in system search path.
197
+
198
# Test whether Snappy library is installed
199
# http://code.google.com/p/snappy/
200
$CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT 2>/dev/null <<EOF
@@ -200,6 +205,7 @@ EOF
205
COMMON_FLAGS="$COMMON_FLAGS -DSNAPPY"
201
206
PLATFORM_LIBS="$PLATFORM_LIBS -lsnappy"
202
207
208
+COMMENT
203
209
204
210
# Test whether tcmalloc is available
211
$CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -ltcmalloc 2>/dev/null <<EOF
0 commit comments