Blame allegro-4.4.2-agl_no_dlopen.patch

Bernhard M. Wiedemann 7ef25b
Index: addons/allegrogl/CMakeLists.txt
Bernhard M. Wiedemann 7ef25b
===================================================================
Bernhard M. Wiedemann 7ef25b
--- addons/allegrogl/CMakeLists.txt.orig
Bernhard M. Wiedemann 7ef25b
+++ addons/allegrogl/CMakeLists.txt
Bernhard M. Wiedemann 7ef25b
@@ -19,11 +19,11 @@ if(ALLEGRO_XWINDOWS_WITH_XF86VIDMODE)
Bernhard M. Wiedemann 7ef25b
     set(ALLEGROGL_HAVE_XF86VIDMODE 1)
Bernhard M. Wiedemann 7ef25b
 endif()
Bernhard M. Wiedemann 7ef25b
 
Bernhard M. Wiedemann 7ef25b
-find_library(DLOPEN_LIB dl)
Bernhard M. Wiedemann 7ef25b
-mark_as_advanced(DLOPEN_LIB)
Bernhard M. Wiedemann 7ef25b
-if(DLOPEN_LIB)
Bernhard M. Wiedemann 7ef25b
-    set(ALLEGROGL_HAVE_DYNAMIC_LINK 1)
Bernhard M. Wiedemann 7ef25b
-endif()
Bernhard M. Wiedemann 7ef25b
+#find_library(DLOPEN_LIB dl)
Bernhard M. Wiedemann 7ef25b
+#mark_as_advanced(DLOPEN_LIB)
Bernhard M. Wiedemann 7ef25b
+#if(DLOPEN_LIB)
Bernhard M. Wiedemann 7ef25b
+#    set(ALLEGROGL_HAVE_DYNAMIC_LINK 1)
Bernhard M. Wiedemann 7ef25b
+#endif()
Bernhard M. Wiedemann 7ef25b
 
Bernhard M. Wiedemann 7ef25b
 if(ALLEGRO_WITH_XWINDOWS)
Bernhard M. Wiedemann 7ef25b
     set(CMAKE_REQUIRED_LIBRARIES ${OPENGL_gl_LIBRARY})