Restore some files and fix minor issues of SGX platform (#144)

This commit is contained in:
Weining
2019-11-21 10:30:57 +08:00
committed by wenyongh
parent 80045ddb55
commit a7a7d04dc6
5 changed files with 26 additions and 54 deletions

View File

@ -170,7 +170,7 @@ Enclave/%.o: Enclave/%.cpp
@$(CXX) $(Enclave_Cpp_Flags) -c $< -o $@
@echo "CXX <= $<"
$(Enclave_Name): Enclave/Enclave_t.o $(Enclave_Cpp_Objects)
$(Enclave_Name): Enclave/Enclave_t.o $(Enclave_Cpp_Objects) libvmlib.a libextlib.a
@$(CXX) $^ -o $@ $(Enclave_Link_Flags)
@echo "LINK => $@"

View File

@ -14,7 +14,6 @@
#include <assert.h>
#include <time.h>
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@ -66,6 +65,7 @@ typedef void* (*thread_start_routine_t)(void*);
#define wa_strdup bh_strdup
int snprintf(char *buffer, size_t count, const char *format, ...);
int strncasecmp(const char *s1, const char *s2, size_t n);
double fmod(double x, double y);
float fmodf(float x, float y);
double sqrt(double x);