diff -ru gdl-0.9.9_old/src/magick_cl.cpp gdl-0.9.9/src/magick_cl.cpp --- gdl-0.9.9_old/src/magick_cl.cpp 2018-12-01 15:19:52.000000000 +0100 +++ gdl-0.9.9/src/magick_cl.cpp 2021-02-15 07:54:39.271235632 +0100 @@ -65,6 +65,10 @@ unsigned int gValid[40]; unsigned int gCount = 0; static bool notInitialized = true; + + __attribute__((constructor)) static void init(void) { + START_MAGICK; + } void magick_setup() { int i;