summaryrefslogtreecommitdiff
path: root/build_detect_platform
diff options
context:
space:
mode:
authorgabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-06-29 22:53:17 +0000
committergabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-06-29 22:53:17 +0000
commit85f0ab1975e5ddd7c387ee6cd4a95987dc6c27b3 (patch)
tree0da2853b72ad45660f709e1ea892038ca72042c1 /build_detect_platform
parentf57e23351f416d15cb6dc2905f2abade5a632fc3 (diff)
downloadleveldb-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_platform8
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