 +libenclave.a: $(EVALOBJS)
 +	${AR} ${ARFLAGS} $@ $(EVALOBJS)
 +	${RANLIB} $@
++
++# Create an empty archive for pthread library. We include pthread symbols in
++# the base libc, but don't want build rules to get errors with -lpthread.
++libpthread.a:
++	${AR} ${ARFLAGS} $@
 +
 +doc:
 +

+	done
+	if [ -z "$(MULTISUBDIR)" ]; then \
+	 mkdir $(DESTDIR)$(tooldir)/include/enclave/; \
+   $(INSTALL_DATA) $(srcdir)/enclave_syscalls.h $(DESTDIR)$(tooldir)/include/enclave/enclave_syscalls.h || exit $$?; \
+	else true; fi
+
+info:

+
+void _exit(int rc)
+{
+  enclave_exit(rc);
+}
+
+int _close(int fildes)
