Skip to content

Commit 7c9cb68

Browse files
committed
Fix trimming test
1 parent 8522727 commit 7c9cb68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/trimming/init.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
#define _GNU_SOURCE
2+
#include <dlfcn.h>
13
#include <julia.h>
24

35
__attribute__((constructor)) void static_init(void)
46
{
57
if (jl_is_initialized())
68
return;
7-
julia_init(JL_IMAGE_IN_MEMORY);
9+
jl_init_with_image_handle((void *)RTLD_DEFAULT);
810
jl_exception_clear();
911
}

0 commit comments

Comments
 (0)