Skip to content

Commit 2e86ea5

Browse files
committed
Mongoose: Define MONGOOSE_BUILDING when building objects for .mex
`.mex` files are basically shared libraries that are loaded by Matlab. Define `MONGOOSE_BUILDING` while building the object files for the `.mex` file.
1 parent b591b78 commit 2e86ea5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Mongoose/MATLAB/mongoose_make.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function mongoose_make (run_test)
3838
% Append optimization
3939
flags = [flags ' -O -silent COPTIMFLAGS="-O3 -fwrapv"'];
4040

41+
% Append while building objects for shared library
42+
flags = [flags ' -DMONGOOSE_BUILDING'];
43+
4144
cpp_flags = '' ;
4245
lib = '';
4346
if (isunix)

0 commit comments

Comments
 (0)