Another fix for Fedora, needed for building MEX for Octave

time-shift
Sébastien Villemot 2020-11-13 10:05:40 +01:00
parent 74d7c8a7f4
commit a922505bbe
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
dnl Copyright © 2009-2019 Dynare Team
dnl Copyright © 2009-2020 Dynare Team
dnl
dnl This file is part of Dynare.
dnl
@ -27,6 +27,8 @@ test "$MKOCTFILE" = no && AC_MSG_ERROR([Octave cannot be found])
CC=$($MKOCTFILE -p CC)
CXX=$($MKOCTFILE -p CXX)
AR=$($MKOCTFILE -p AR)
RANLIB=$($MKOCTFILE -p RANLIB)
CFLAGS="$($MKOCTFILE -p CFLAGS) -Wall -Wno-parentheses"
FCFLAGS="$($MKOCTFILE -p FFLAGS) -Wall -std=gnu" # Override -std=legacy that is in FFLAGS in Octave 5
FFLAGS="$($MKOCTFILE -p FFLAGS) -Wall"

View File

@ -65,6 +65,8 @@ fi
: ${CXXPICFLAG=""}
: ${XTRA_CFLAGS="-fopenmp"}
: ${XTRA_CXXFLAGS="-fopenmp"}
: ${AR="x86_64-w64-mingw32-ar"}
: ${RANLIB="x86_64-w64-mingw32-ranlib"}
: ${DEPEND_FLAGS="-M"}
: ${DEPEND_EXTRA_SED_PATTERN=""}