* -mwindows is a linker flag, so move it from CFLAGS and CXXFLAGS to LDFLAGS

* autorevision is a command line utility, not a GUI program, so strip the -mwindows flag from its linker flags

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5646 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-23 13:48:50 +00:00
parent cf374ee5e1
commit c1fb0af729
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,8 @@ top_builddir=$(top_srcdir)
include $(top_srcdir)/makerules/common.mk
LDFLAGS:=$(subst -mwindows,,$(LDFLAGS))
SRC=autorevision.cpp
EXE=autorevision

View File

@ -70,9 +70,7 @@ CC:=gcc
CXX:=g++
WINDRES:=windres
WZ_CPPFLAGS+=-DWIN32
WZ_CFLAGS+=-mwindows
WZ_CXXFLAGS+=-mwindows
WZ_LDFLAGS+=-lmingw32 -lSDLmain -lSDL -lSDL_net -lpng12 -lphysfs -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGLC -lglu32 -lopengl32 -lopenal32 -ldbghelp -lshfolder -lwinmm -lwsock32 -lbfd -liberty -liconv -lz -lfreetype -lfontconfig -lexpat
WZ_LDFLAGS+=-mwindows -lmingw32 -lSDLmain -lSDL -lSDL_net -lpng12 -lphysfs -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGLC -lglu32 -lopengl32 -lopenal32 -ldbghelp -lshfolder -lwinmm -lwsock32 -lbfd -liberty -liconv -lz -lfreetype -lfontconfig -lexpat
# Import environment variables