diff options
author | gabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-06-29 22:53:17 +0000 |
---|---|---|
committer | gabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-06-29 22:53:17 +0000 |
commit | 85f0ab1975e5ddd7c387ee6cd4a95987dc6c27b3 (patch) | |
tree | 0da2853b72ad45660f709e1ea892038ca72042c1 /build_detect_platform | |
parent | f57e23351f416d15cb6dc2905f2abade5a632fc3 (diff) | |
download | leveldb-85f0ab1975e5ddd7c387ee6cd4a95987dc6c27b3.tar.gz |
Fixing Makefile issue reported in Issue 15 (misspelled flag)
git-svn-id: https://leveldb.googlecode.com/svn/trunk@35 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'build_detect_platform')
-rw-r--r-- | build_detect_platform | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build_detect_platform b/build_detect_platform index f23068a..bb108f7 100644 --- a/build_detect_platform +++ b/build_detect_platform @@ -17,8 +17,8 @@ rm -f build_config.mk case `uname -s` in Darwin) PLATFORM=OS_MACOSX - echo "PLATFORM_CFLAGS=-pthread -DOS_MACOSX" >> build_config.mk - echo "PLATFORM_LDFLAGS=-lpthread" >> build_config.mk + echo "PLATFORM_CFLAGS=-DOS_MACOSX" >> build_config.mk + echo "PLATFORM_LDFLAGS=" >> build_config.mk ;; Linux) PLATFORM=OS_LINUX @@ -49,9 +49,9 @@ g++ $CFLAGS -std=c++0x -x c++ - -o /dev/null 2>/dev/null <<EOF int main() {} EOF if [ "$?" = 0 ]; then - PORT_CFLAGS+=" -DLEVELDB_PLATFORM_POSIX -DLEVELDB_CSTDATOMIC_PRESENT -std=c++0x" + PORT_CFLAGS="$PORT_CFLAGS -DLEVELDB_PLATFORM_POSIX -DLEVELDB_CSTDATOMIC_PRESENT -std=c++0x" else - PORT_CFLAGS+=" -DLEVELDB_PLATFORM_POSIX" + PORT_CFLAGS="$PORT_CFLAGS -DLEVELDB_PLATFORM_POSIX" fi # Test whether Snappy library is installed |