linux run test fix (except RTTI linking problems)

This commit is contained in:
Vasily Levchenko
2016-11-03 06:19:26 +03:00
parent 1f90f32397
commit 09fb11fbc9
2 changed files with 24 additions and 3 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
#ifdef __linux__
# define _GNU_SOURCE
#endif
#include <dlfcn.h>
#include <stdlib.h>
#include <stdio.h>
@@ -10,7 +13,7 @@ extern int run_test();
void * resolve_symbol(char *name) {
/* here we can add here some magic to resolve symbols in kotlin native*/
return dlsym(RTLD_SELF, name);
return dlsym(RTLD_DEFAULT, name);
}