mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 09:11:56 +00:00
Use a NULL for the path passed to dlopen, that means 'give me a handle to the loaded image' which at the point where this function is called already included all libGL's symbols. Makes the whole thing easier to maintain.
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@109 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
397ac3fd63
commit
5fe5fa1f4d
2
Makefile
2
Makefile
@ -78,7 +78,7 @@ ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX)
|
|||||||
CC = cc
|
CC = cc
|
||||||
EXTRA_CCFLAGS =
|
EXTRA_CCFLAGS =
|
||||||
EXTRA_LDFALGS =
|
EXTRA_LDFALGS =
|
||||||
EXTRA_CPPFLAGS = -DGLEW_NEEDS_CUSTOM_GET_PROCADDRESS=1 -DGLEW_OPENGL_LIB_PATH=\"libGL.so\"
|
EXTRA_CPPFLAGS = -DGLEW_NEEDS_CUSTOM_GET_PROCADDRESS=1
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
P.BIN =
|
P.BIN =
|
||||||
WARN = -fullwarn
|
WARN = -fullwarn
|
||||||
|
@ -55,11 +55,11 @@ static void * __dlopenGetProcAddress(const GLubyte *procName)
|
|||||||
|
|
||||||
if (!h)
|
if (!h)
|
||||||
{
|
{
|
||||||
if (!(h = dlopen(GLEW_OPENGL_LIB_PATH, RTLD_LAZY | RTLD_LOCAL)))
|
if (!(h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)))
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"E: GLEW failed to dlopen %s: %s.\nAbort.\n",
|
"E: GLEW failed to dlopen myself: %s.\nAbort.\n",
|
||||||
GLEW_OPENGL_LIB_PATH, dlerror());
|
dlerror());
|
||||||
exit(100);
|
exit(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user