Revert "Revert "change C++ compiler for MacOSX""
authorJaewon Lim <jaewon81.lim@samsung.com>
Thu, 10 Nov 2016 04:48:29 +0000 (13:48 +0900)
committerSangJin Kim <sangjin3.kim@samsung.com>
Thu, 10 Nov 2016 04:51:18 +0000 (13:51 +0900)
This reverts commit 25b33239d9bd91a014dd64b3f2572728f72269ee.

Change-Id: Id3ac7e642f8e2ba4661c408b144868e9d721e3c2

Makefile

index d9044f2e70ee3793b726cc251dd3f94e92df8e5c..ab4eb7f794291c30d09984d4f803d1a0f75f8d55 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ ENCLIB_LFLAGS := ./SPC/gcc/build/linux/libPAKEClient.a
 
 ifeq ($(HOST_OS),darwin)
        CC := clang
+       CXX := clang++
 endif
 #
 ifeq ($(HOST_OS),linux)
@@ -33,7 +34,7 @@ ifeq ($(HOST_OS),darwin)
        LOCAL_USB_SRC := src/usb_darwin.c
        LOCAL_UTIL_SRC := src/utils_unix.c
        LOCAL_OTHER_SRC := src/fdevent.c src/fdevent_unix.c src/auto_complete.c
-       LOCAL_LFLAGS := -lpthread -lcrypto -framework CoreFoundation -framework IOKit -framework Carbon
+       LOCAL_LFLAGS := -stdlib=libstdc++ -lpthread -lcrypto -framework CoreFoundation -framework IOKit -framework Carbon
        LOCAL_CFLAGS := -DOS_DARWIN -DHAVE_FORKEXEC -DHAVE_SYMLINKS -mmacosx-version-min=10.4 -DSDB_HOST=1 -DSDB_HOST_ON_TARGET=1
 endif