aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-06-01 11:41:33 +0900
committerChad Versace <chad.versace@intel.com>2015-06-04 10:45:23 -0700
commit17055eec43766f91181bb2ede6907f5cba47bf80 (patch)
treebea632d8c697a6f4016a285a4b9d861076921425 /src
parent76df03ee6327647f709aa7d2b2ec42ebda12bfc3 (diff)
downloadwaffle-maint-1.4.tar.gz
linux: Use full libGLES*.so.[12] SONAMEsmaint-1.4
The libGLES*.so symlinks are intended for the compile-time linker and not available everywhere at runtime. v2: * Continue using libGLES*.so on Android, the full SONAMEs aren't available there. * Remove stale comment line Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Chad Versace <chad.versace@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit e9c4e291982acc303a3a9a70e817e052f4fdc05a)
Diffstat (limited to 'src')
-rw-r--r--src/waffle/linux/linux_dl.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/waffle/linux/linux_dl.c b/src/waffle/linux/linux_dl.c
index 1e14684..33eb69d 100644
--- a/src/waffle/linux/linux_dl.c
+++ b/src/waffle/linux/linux_dl.c
@@ -34,7 +34,7 @@
#include "linux_dl.h"
struct linux_dl {
- /// @brief For example, "libGLESv2.so".
+ /// @brief For example, "libGLESv2.so.2".
const char *name;
/// @brief The library obtained with dlopen().
@@ -50,17 +50,24 @@ linux_dl_get_name(int32_t waffle_dl)
case WAFFLE_DL_OPENGL:
return "libGL.so.1";
case WAFFLE_DL_OPENGL_ES1:
+#ifdef WAFFLE_HAS_ANDROID
return "libGLESv1_CM.so";
+#else
+ return "libGLESv1_CM.so.1";
+#endif
case WAFFLE_DL_OPENGL_ES2:
case WAFFLE_DL_OPENGL_ES3:
// As of 2014-04-20, Mesa statically provides the ES2 and ES3
- // symbols symbols in libGLESv2.so and provides no ES3-only library
+ // symbols symbols in libGLESv2.so.2 and provides no ES3-only library
//
- // Even though Waffle does not use the library's soname, note that
// Mesa did not change the library's soname when it added the ES3
// symbols. The soname was and is libGLESv2.so.2 before and after
// ES3.
+#ifdef WAFFLE_HAS_ANDROID
return "libGLESv2.so";
+#else
+ return "libGLESv2.so.2";
+#endif
default:
wcore_error_internal("waffle_dl has bad value %#x", waffle_dl);
return NULL;