about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibrt.c')
-rw-r--r--src/wrapped/wrappedlibrt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibrt.c b/src/wrapped/wrappedlibrt.c
index 1ca32859..438b3312 100644
--- a/src/wrapped/wrappedlibrt.c
+++ b/src/wrapped/wrappedlibrt.c
@@ -162,4 +162,9 @@ EXPORT int my_lio_listio(x64emu_t* emu, int mode, void* list[], int nent, struct
 extern int __mq_open_2(const char*, int);
 #endif
 
+#define PRE_INIT\
+    if(1)                                                   \
+        lib->w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL); \
+    else
+
 #include "wrappedlib_init.h"