Do not set C libs on osx
they are included in libSystem.dylib
@@ -23,7 +23,11 @@ static int read_byte (MIR_context_t ctx) {
static struct lib {
char *name;
void *handler;
-} libs[] = {{"/lib64/libc.so.6", NULL}, {"/lib64/libm.so.6", NULL}};
+} libs[] = {
+#if !defined(__APPLE__)
+ {"/lib64/libc.so.6", NULL}, {"/lib64/libm.so.6", NULL}
+#endif
+};
static void close_libs (void) {
for (int i = 0; i < sizeof (libs) / sizeof (struct lib); i++)
