Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
7e46d826
Verified
Commit
7e46d826
authored
Apr 1, 2019
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
mac: make build system work with clang and gcc
parent
a93c6681
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/ax_mexopts.m4
+7
-12
7 additions, 12 deletions
m4/ax_mexopts.m4
mex/build/matlab/configure.ac
+9
-2
9 additions, 2 deletions
mex/build/matlab/configure.ac
with
16 additions
and
14 deletions
m4/ax_mexopts.m4
+
7
−
12
View file @
7e46d826
dnl Copyright (C) 2009-201
6
Dynare Team
dnl Copyright (C) 2009-201
9
Dynare Team
dnl
dnl This file is part of Dynare.
dnl
...
...
@@ -59,19 +59,14 @@ case ${MATLAB_ARCH} in
ax_mexopts_ok="yes"
;;
maci | maci64)
MACOSX_DEPLOYMENT_TARGET='10.7'
if test "${MATLAB_ARCH}" = "maci"; then
ARCHS='i386'
else
ARCHS='x86_64'
fi
MACOSX_DEPLOYMENT_TARGET='10.9'
MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG"
MATLAB_CFLAGS="-fno-common -arch
$ARCHS
-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -fexceptions"
MATLAB_CXXFLAGS="
-fno-common -fexceptions -arch $ARCHS -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET
"
MATLAB_FFLAGS="-fexceptions -fbackslash -arch
$ARCHS
"
MATLAB_LDFLAGS_NOMAP="
-L$MATLAB/bin/${MATLAB_ARCH}
-Wl,-twolevel_namespace -undefined error -arch
$ARCHS
-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -bundle"
MATLAB_CFLAGS="-fno-common -arch
x86_64
-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -fexceptions"
MATLAB_CXXFLAGS="
$MATLAB_CFLAGS
"
MATLAB_FFLAGS="-fexceptions -fbackslash -arch
x86_64
"
MATLAB_LDFLAGS_NOMAP="-Wl,-twolevel_namespace -undefined error -arch
x86_64
-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -bundle"
MATLAB_LDFLAGS="$MATLAB_LDFLAGS_NOMAP -Wl,-exported_symbols_list,$(pwd)/$srcdir/mexFunction-MacOSX.map"
MATLAB_LIBS="-lmx -lmex -lmat
-lstdc++
-lmwlapack -lmwblas"
MATLAB_LIBS="
-L$MATLAB/bin/maci64
-lmx -lmex -lmat -lmwlapack -lmwblas"
ax_mexopts_ok="yes"
;;
*)
...
...
...
...
This diff is collapsed.
Click to expand it.
mex/build/matlab/configure.ac
+
9
−
2
View file @
7e46d826
dnl Process this file with autoconf to produce a configure script.
dnl Copyright (C) 2009-201
7
Dynare Team
dnl Copyright (C) 2009-201
9
Dynare Team
dnl
dnl This file is part of Dynare.
dnl
...
...
@@ -66,7 +66,14 @@ AM_PROG_AR
case ${host_os} in
*darwin*)
string="`$CXX --version`"
if test x"${string#*clang}" != x"$string"; then
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
MATLAB_LIBS="$MATLAB_LIBS -lc++"
MATLAB_LDFLAGS="$MATLAB_LDFLAGS -Wl,-syslibroot,`xcrun -sdk macosx --show-sdk-path`"
else
MATLAB_LIBS="$MATLAB_LIBS -lstdc++"
fi
;;
esac
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment