From 4a96ed803936e6ccc25d46a6587b064441cccd96 Mon Sep 17 00:00:00 2001 From: "Mr.Coder" Date: Sat, 7 Dec 2013 17:09:32 +0800 Subject: [PATCH] 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++' --- src/makefile.osx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/makefile.osx b/src/makefile.osx index 7f9ff4f0d..9e4bc2a5f 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -67,6 +67,9 @@ else DEBUGFLAGS = -g 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 CFLAGS += -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \ $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)