use_dll under MATLAB: link only to libraries that are really needed

issue#70
Sébastien Villemot 2019-07-11 16:11:24 +02:00
parent 176732ee2c
commit ac9d352a2c
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -2226,7 +2226,7 @@ ModelTree::compileDll(const string &basename, const string &static_or_dynamic, c
auto bin_dir = matlabroot / "bin" / arch;
flags << " -L " << bin_dir;
flags << " -fexceptions -DNDEBUG";
libs = "-lmex -lmx -lmat -lmwlapack -lmwblas";
libs = "-lmex -lmx";
if (mexext == "mexglx" || mexext == "mexa64")
{
// GNU/Linux