Skip to content
Snippets Groups Projects
Commit 7ff45384 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix passing of compflag in dyn_mex.m

Fixes 83eeafa3
parent 83eeafa3
No related branches found
No related tags found
1 merge request!1228Fix passing of compflag in dyn_mex.m
...@@ -50,8 +50,8 @@ if ~exist('OCTAVE_VERSION') ...@@ -50,8 +50,8 @@ if ~exist('OCTAVE_VERSION')
if strcmp(win_compiler,'msvc') if strcmp(win_compiler,'msvc')
% MATLAB/Windows + Microsoft Visual C++ % MATLAB/Windows + Microsoft Visual C++
% Add /TP flag as fix for #1227 % Add /TP flag as fix for #1227
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" /TP ' basename '_dynamic.c ' basename '_dynamic_mex.c']) eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" COMPFLAGS="/TP" ' basename '_dynamic.c ' basename '_dynamic_mex.c'])
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Static" /TP ' basename '_static.c ' basename '_static_mex.c']) eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Static" COMPFLAGS="/TP" ' basename '_static.c ' basename '_static_mex.c'])
elseif strcmp(win_compiler,'cygwin') elseif strcmp(win_compiler,'cygwin')
% MATLAB/Windows + Cygwin g++ % MATLAB/Windows + Cygwin g++
eval(['mex -O PRELINK_CMDS1="echo EXPORTS > mex.def & echo ' ... eval(['mex -O PRELINK_CMDS1="echo EXPORTS > mex.def & echo ' ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment