diff --git a/src/magick_cl.cpp b/src/magick_cl.cpp index e2d27a1b7..96a88104c 100644 --- a/src/magick_cl.cpp +++ b/src/magick_cl.cpp @@ -66,6 +66,10 @@ namespace lib { unsigned int gCount = 0; static bool notInitialized = true; + __attribute__((constructor)) static void init(void) { + START_MAGICK; + } + void magick_setup() { int i; for (i = 0; i < 40; ++i) gValid[i] = 0;