diff options
-rw-r--r-- | system/include/dlfcn.h | 15 | ||||
-rw-r--r-- | tools/shared.py | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/system/include/dlfcn.h b/system/include/dlfcn.h new file mode 100644 index 00000000..f3439c70 --- /dev/null +++ b/system/include/dlfcn.h @@ -0,0 +1,15 @@ + +extern "C" { + +#define RTLD_LAZY 1 +#define RTLD_NOW 2 +#define RTLD_GLOBAL 4 +#define RTLD_LOCAL 8 + +void *dlopen(const char *, int); +void *dlsym(void *, const char *); +int dlclose(void *); +char *dlerror(void); + +} + diff --git a/tools/shared.py b/tools/shared.py index 75804746..ba1f7dcc 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -28,6 +28,7 @@ EXEC_LLVM = path_from_root('tools', 'exec_llvm.py') # Additional compiler options COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-nostdinc', '-v', '-U__i386__', '-U__x86_64__', '-U__i386', '-U__x86_64', '-U__SSE__', '-U__SSE2__', '-UX87_DOUBLE_ROUNDING', '-UHAVE_GCC_ASM_FOR_X87'] + [ + '-I' + path_from_root('system', 'include'), '-I' + path_from_root('system', 'include', 'libc'), '-I' + path_from_root('system', 'include', 'libcxx'), ] |