From f40f6e954963baccb99c489246a55e85f71bd0d3 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 16 Sep 2008 04:25:39 +0000 Subject: [PATCH] Don't use CXXFLAGS when making makefile.dep, because that doesn't work with universal binaries. Instead, put -DNOLUA in CPPFLAGS. --- Makefile.in | 2 +- configure | 2 +- configure.ac | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9ea4b483c..88c082011 100644 --- a/Makefile.in +++ b/Makefile.in @@ -272,5 +272,5 @@ config.status: configure ./config.status --recheck makefile.dep: - $(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $(SRCS) > $@ + $(CXX) -MM $(CPPFLAGS) $(SRCS) > $@ include makefile.dep diff --git a/configure b/configure index 393d8ad6a..372b2b226 100755 --- a/configure +++ b/configure @@ -7453,7 +7453,7 @@ fi # They don't want lua if test "$no_lua" = "yes"; then - CXXFLAGS="-DNOLUA $CXXFLAGS" + CPPFLAGS="-DNOLUA $CPPFLAGS" LIBLUA_LIBS="" LUA_DEPENDS="" LUA_BUILD="" diff --git a/configure.ac b/configure.ac index f88b764bc..defb0bb67 100644 --- a/configure.ac +++ b/configure.ac @@ -537,7 +537,7 @@ AC_HELP_STRING([--without-liblua], [Compile without lua (this will exclude all o # They don't want lua if test "$no_lua" = "yes"; then - CXXFLAGS="-DNOLUA $CXXFLAGS" + CPPFLAGS="-DNOLUA $CPPFLAGS" LIBLUA_LIBS="" LUA_DEPENDS="" LUA_BUILD=""