fix(mac): add options for required libraries

This commit is contained in:
youben11
2022-01-19 16:56:55 +01:00
committed by Ayoub Benaissa
parent ff73d09f65
commit 71cccc6a89

View File

@@ -409,7 +409,9 @@ const std::string CompilerEngine::Library::CLIENT_PARAMETERS_EXT =
".concrete.params.json";
const std::string CompilerEngine::Library::LINKER = "ld";
#ifdef __APPLE__
const std::string CompilerEngine::Library::LINKER_SHARED_OPT = " -dylib -o ";
// ld in Mac can't find some symbols without specifying these libs
const std::string CompilerEngine::Library::LINKER_SHARED_OPT =
" -dylib -lConcretelangRuntime -lc -o ";
const std::string CompilerEngine::Library::DOT_SHARED_LIB_EXT = ".dylib";
#else // Linux
const std::string CompilerEngine::Library::LINKER_SHARED_OPT = " --shared -o ";