From: Carl Worth Date: Wed, 3 Jul 2013 00:38:28 +0000 (-0700) Subject: dlwrap: Add "libGLESv2.so" to the list of supported wrapped libraries X-Git-Url: https://git.cworth.org/git?p=fips;a=commitdiff_plain;h=81e5de580cb0fcdf7cccc94bfde90c22c9083313 dlwrap: Add "libGLESv2.so" to the list of supported wrapped libraries This hooks up libGLESv2 to all of our dlsym machinery. It ensures that we can intercept any dlsym calls into libGLESv2. It also ensures that when glwrap looks for underlying, "real", GL functions it will look into libGLESv2.so if that's the library that the application has previously dlopened. This commit fixes the egl-glesv2-dlopen-dlsym and egl-glesv2-dlopen-gpa tests in the test suite. --- diff --git a/dlwrap.c b/dlwrap.c index 858b99b..dda7a77 100644 --- a/dlwrap.c +++ b/dlwrap.c @@ -38,7 +38,8 @@ typedef void * (* fips_dlsym_t)(void *handle, const char *symbol); static const char *wrapped_libs[] = { "libGL.so", - "libEGL.so" + "libEGL.so", + "libGLESv2.so" }; static void *orig_handles[ARRAY_SIZE(wrapped_libs)];