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)