}
void smpi_register_static(void* arg) {
+
+#ifndef APPLE
+// FIXME
+// On Apple this error occurs:
+// Undefined symbols for architecture x86_64:
+// "_on_exit", referenced from:
+// _smpi_register_static in smpi_c99.c.o
on_exit(&smpi_free_static, arg);
+#endif
}