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

Windows package: fix bug introduced in c5120e12

(cherry picked from commit 91e33488)
parent 46d5f945
Branches
Tags
No related merge requests found
......@@ -98,6 +98,17 @@ case ${host_os} in
;;
esac
# Define an automake conditional for the Windows platform
case ${host_os} in
*mingw32*)
windows_api=yes
;;
*)
windows_api=no
;;
esac
AM_CONDITIONAL([WINDOWS_API], [test ${windows_api} = yes])
# Construct final output message
if test "$enable_mex_dynareplusplus" = yes; then
BUILD_GENSYLV_KORDER_DYNSIMUL_MEX_OCTAVE="yes"
......
......@@ -8,7 +8,19 @@ DEFS += -DMEXEXT=\".mex\"
AM_CFLAGS = $(shell $(MKOCTFILE) -p CPICFLAG) -Wall -Wno-parentheses
AM_FCFLAGS = $(shell $(MKOCTFILE) -p FPICFLAG) -Wall -Wimplicit-interface
AM_CXXFLAGS = $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wno-parentheses -Wold-style-cast
AM_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS) -L"$(shell $(MKOCTFILE) -p OCTLIBDIR)"
AM_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS)
# Mimick the behaviour of mkoctfile: link against Octave libraries on Windows only
# (it is required there, otherwise we get a link failure)
if WINDOWS_API
AM_LDFLAGS += -L"$(shell $(MKOCTFILE) -p OCTLIBDIR)"
LIBS += $(shell $(MKOCTFILE) -p OCTAVE_LIBS)
endif
# Unconditionally link against BLAS/LAPACK, since we tend to use them in
# many MEX files
LIBS += $(shell $(MKOCTFILE) -p BLAS_LIBS)
LIBS += $(shell $(MKOCTFILE) -p LAPACK_LIBS)
mexdir = $(libdir)/dynare/mex/octave
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment