From: Matthias Braun Date: Fri, 5 Aug 2005 15:06:54 +0000 (+0000) Subject: try workaround problems on win32 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e1db813ddcd1b236d2670e0643214ae6a58c26a5;p=supertux.git try workaround problems on win32 SVN-Revision: 2751 --- diff --git a/tools/miniswig/Jamfile b/tools/miniswig/Jamfile index 993efa4b2..29905696b 100644 --- a/tools/miniswig/Jamfile +++ b/tools/miniswig/Jamfile @@ -1,12 +1,19 @@ SubDir TOP tools miniswig ; if $(LEX) && $(BISON) { + + # hack because SDL does nasty -Dmain=SDL_main on windows + old_CXXFLAGS = $(CXXFLAGS) ; + CXXFLAGS = [ Filter $(CXXFLAGS) : -Dmain=SDL_main ] ; + sources = [ Filter [ Wildcard *.yy *.ll *.cpp ] : parser.cpp lexer.cpp ] ; MINISWIG = [ Application miniswig : $(sources) ] ; C++Flags miniswig : -Wno-unused ; IncludeDir miniswig : . ; ExternalLibs miniswig : LEX ; + CXXFLAGS = $(old_CXXFLAGS) ; + # we gotta run bison before flex lexer_cpp = [ SearchSource lexer.cpp ] ; lexer_o = [ LocateTarget $(lexer_cpp:S=.o) ] ;