Mingw: Add -DGLEW_STATIC, assuming that everyone will use a static glew

When somebody figures out how to link to the dynamic one, this will have
to be revisited.
stable-5.2
Günther Brammer 2009-05-14 01:57:50 +02:00
parent 698840e082
commit 4c897d7ac1
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ AM_CPPFLAGS = \
-I$(srcdir)/engine/inc \
-I$(srcdir)/engine/sec \
-DC4ENGINE \
$(GTK_CFLAGS) $(FREETYPE_CFLAGS) $(SDL_CFLAGS)
$(GLEW_CFLAGS) $(GTK_CFLAGS) $(FREETYPE_CFLAGS) $(SDL_CFLAGS)
#various hacks to get dependency tracking working with a precompiled C4Include
if RECENT_GCC

View File

@ -213,6 +213,7 @@ if test $with_gl = yes; then
[AC_MSG_ERROR([glu32 not found.])])
AC_CHECK_LIB(glew32, main, [CLONK_LIBS="-lglew32 $CLONK_LIBS"],
[AC_MSG_ERROR([glew not found.])])
AC_SUBST([GLEW_CFLAGS],["-DGLEW_STATIC"])
else
AC_CHECK_LIB(GL, glBegin, [CLONK_LIBS="-lGL $CLONK_LIBS"],
[AC_MSG_ERROR([libGL not found.])])