From 1ff5c99da05decdc58be4f04b0f5c4bf5033b564 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 25 Feb 2013 14:20:39 +0000 Subject: [PATCH] build: do not assume the OS X compiler understands -ObjC++. --- build/autotools/m4/lol-gl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/autotools/m4/lol-gl.m4 b/build/autotools/m4/lol-gl.m4 index 4bf849ca..21cf89e0 100644 --- a/build/autotools/m4/lol-gl.m4 +++ b/build/autotools/m4/lol-gl.m4 @@ -15,7 +15,7 @@ if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then [AC_MSG_RESULT(yes) ac_cv_my_have_gl="yes" GL_LIBS="${GL_LIBS} -framework OpenGL" - CXXFLAGS="${CXXFLAGS} -ObjC++" + LOL_TRY_CXXFLAGS(-ObjC++, [CXXFLAGS="${CXXFLAGS} -ObjC++"]) AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available)], [AC_MSG_RESULT(no)]) LIBS="$LIBS_save"