 +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:
 +

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

+GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
+	then echo -L${objroot}/../gcc ; fi`
+
+OUTPUTS = libenclave.a libpthread.a
+SPECS = ${srcdir}/enclave.specs
+
+# Host specific makefile fragment comes in here.
