set CXX to c++ on Darwin

pull/2/head
weidai 2004-06-19 11:42:41 +00:00
parent cbcd7b07f8
commit 9eab2390bc
1 changed files with 1 additions and 1 deletions

View File

@ -44,11 +44,11 @@ endif
ifeq ($(UNAME),Darwin)
AR = libtool
ARFLAGS = -static -o
CXX = c++
CXXFLAGS += -D__pic__
IS_GCC2 = $(shell $(CXX) -v 2>&1 | grep -c gcc-932)
ifeq ($(IS_GCC2),1)
CXXFLAGS += -fno-coalesce-templates -fno-coalesce-static-vtables
CXX = c++
LDLIBS += -lstdc++
LDFLAGS += -flat_namespace -undefined suppress -m
endif