Skip to content
Snippets Groups Projects
Commit 7a02236f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix mexopts.bat files for Cygwin

Quote %LIBLOC% for the case where it contains spaces
parent 1b317f1b
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ rem You will also need the "mingw64-i686-gcc-g++" package. ...@@ -16,7 +16,7 @@ rem You will also need the "mingw64-i686-gcc-g++" package.
rem rem
rem Initial version by Michel Juillard, revised by Sebastien Villemot. rem Initial version by Michel Juillard, revised by Sebastien Villemot.
rem Copyright (C) 2009-2010 Dynare Team rem Copyright (C) 2009-2013 Dynare Team
rem rem
rem This file is part of Dynare. rem This file is part of Dynare.
rem rem
...@@ -56,7 +56,7 @@ rem ******************************************************************** ...@@ -56,7 +56,7 @@ rem ********************************************************************
set PRELINK_CMDS1=echo EXPORTS > mex.def & echo mexFunction >> mex.def set PRELINK_CMDS1=echo EXPORTS > mex.def & echo mexFunction >> mex.def
set LIBLOC=%MATLAB%\bin\win32\ set LIBLOC=%MATLAB%\bin\win32\
set LINKER=i686-w64-mingw32-gcc set LINKER=i686-w64-mingw32-gcc
set LINKFLAGS= -static-libgcc -shared mex.def -L%LIBLOC% set LINKFLAGS= -static-libgcc -shared mex.def "-L%LIBLOC%"
set LINKFLAGSPOST= -lmex -lmx -lmwlapack -lmwblas set LINKFLAGSPOST= -lmex -lmx -lmwlapack -lmwblas
set LINKOPTIMFLAGS=-O3 set LINKOPTIMFLAGS=-O3
set LINKDEBUGFLAGS= -g -Wall set LINKDEBUGFLAGS= -g -Wall
......
...@@ -16,7 +16,7 @@ rem You will also need the "mingw64-x86_64-gcc-g++" package. ...@@ -16,7 +16,7 @@ rem You will also need the "mingw64-x86_64-gcc-g++" package.
rem rem
rem Initial version by Michel Juillard, revised by Sebastien Villemot. rem Initial version by Michel Juillard, revised by Sebastien Villemot.
rem Copyright (C) 2009-2010 Dynare Team rem Copyright (C) 2009-2013 Dynare Team
rem rem
rem This file is part of Dynare. rem This file is part of Dynare.
rem rem
...@@ -56,7 +56,7 @@ rem ******************************************************************** ...@@ -56,7 +56,7 @@ rem ********************************************************************
set PRELINK_CMDS1=echo EXPORTS > mex.def & echo mexFunction >> mex.def set PRELINK_CMDS1=echo EXPORTS > mex.def & echo mexFunction >> mex.def
set LIBLOC=%MATLAB%\bin\win64\ set LIBLOC=%MATLAB%\bin\win64\
set LINKER=x86_64-w64-mingw32-gcc set LINKER=x86_64-w64-mingw32-gcc
set LINKFLAGS= -static-libgcc -shared mex.def -L%LIBLOC% set LINKFLAGS= -static-libgcc -shared mex.def "-L%LIBLOC%"
set LINKFLAGSPOST= -lmex -lmx -lmwlapack -lmwblas set LINKFLAGSPOST= -lmex -lmx -lmwlapack -lmwblas
set LINKOPTIMFLAGS=-O3 set LINKOPTIMFLAGS=-O3
set LINKDEBUGFLAGS= -g -Wall set LINKDEBUGFLAGS= -g -Wall
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment