GL/gl_mangle.h misses symbols from GLES/gl.h
Submitted by Frederic Devernay
Assigned to mes..@..op.org
Description
When using a statically linked libMangledOSMesa32.a, One gets these undefined symbols at link time:
Undefined symbols for architecture x86_64: "_glAlphaFuncx", referenced from: _static_functions in libMangledOSMesa32.a(glapi_libglapi_la-glapi_getproc.o) "_glClearColorx", referenced from: _static_functions in libMangledOSMesa32.a(glapi_libglapi_la-glapi_getproc.o) [long list of _gl.*x undefined symbols]
obviously, functions defined in GLES/gl.h should be mangled too.
To fix it, include ../GLES/gl.h when regenerating gl_mangle.h:
(cd include/GL; sed -e 's@gl.h glext.h@gl.h glext.h ../GLES/gl.h@' -e 's@^GLAPI@^GL_?API@' -i .orig gl_mangle.h) (cd include/GL; sh ./gl_mangle.h > gl_mangle.h.new && mv gl_mangle.h.new gl_mangle.h)
now glAlphaFuncx and friends are correctly mangled
Version: 10.6