--- asterisk-13.19.0-rc1/main/loader.c.orig 2017-12-23 22:32:15.423500524 -0600 +++ asterisk-13.19.0-rc1/main/loader.c 2017-12-23 22:34:29.781575158 -0600 @@ -561,7 +561,7 @@ * * \warning module_list must be locked before calling this function. */ -static struct ast_module *load_dlopen(const char *resource_in, const char *so_ext, +static struct ast_module * __attribute__((optimize("O0"))) load_dlopen(const char *resource_in, const char *so_ext, const char *filename, int flags, unsigned int suppress_logging) { struct ast_module *mod;