Update makefile.osx to prevent some compiling errors under osx 10.9

osx 10.9 changed the default stdlib to libc++. You may need to compile with libstdc++ to prevent some errors. At the same time, boost should be compiled use a cxxflag '-stdlib=libstdc++'
This commit is contained in:
Mr.Coder 2013-12-07 17:09:32 +08:00 committed by Warren Togami
parent e955fa8971
commit 4a96ed8039

View File

@ -67,6 +67,9 @@ else
DEBUGFLAGS = -g DEBUGFLAGS = -g
endif endif
# osx 10.9 has changed the stdlib default to libc++. To prevent some link error, you may need to use libstdc++
CFLAGS += -stdlib=libstdc++
# ppc doesn't work because we don't support big-endian # ppc doesn't work because we don't support big-endian
CFLAGS += -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \ CFLAGS += -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)