Fix MinGW compilation due to recent font rendering changes.

GLEW_STATIC needs to be defined for static linking of GLEW or the dynamic entry points are looked up during linking
This commit is contained in:
Antony Riakiotakis 2012-02-04 10:02:59 +00:00
parent deec4ce0bc
commit d84573386e
2 changed files with 3 additions and 1 deletions

View File

@ -57,5 +57,7 @@ if(WITH_INTERNATIONAL)
add_definitions(-DWITH_INTERNATIONAL)
endif()
add_definitions(-DGLEW_STATIC)
blender_add_lib(bf_blenfont "${SRC}" "${INC}" "${INC_SYS}")

View File

@ -9,7 +9,7 @@ incs += ' #/extern/glew/include'
incs += ' ' + env['BF_FREETYPE_INC']
incs += ' ' + env['BF_GETTEXT_INC']
defs = []
defs = ['GLEW_STATIC']
if sys.platform == 'win32' or env['OURPLATFORM'] == 'linuxcross':
defs.append('_WIN32')