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:
@@ -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}")
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user