e6243c7e300b7ab161b1226d26a8e50905ab127f
[pkg-octave/octave.git] / debian / patches / mkoctfile-mpi.diff
1 Description: Include MPI headers when building Oct/MEX-files
2 Author: Thomas Weber <tweber@debian.org>
3 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598227
4 Forwarded: not-needed
5 Last-Update: 2012-08-18
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- a/src/mkoctfile.in.cc
9 +++ b/src/mkoctfile.in.cc
10 @@ -159,7 +159,8 @@ initialize (void)
11    vars["CXXPICFLAG"] = get_variable ("CXXPICFLAG", %OCTAVE_CONF_CXXPICFLAG%);
12    vars["XTRA_CFLAGS"] = get_variable ("XTRA_CFLAGS", %OCTAVE_CONF_XTRA_CFLAGS%);
13    vars["XTRA_CXXFLAGS"] = get_variable ("XTRA_CXXFLAGS",
14 -                                        %OCTAVE_CONF_XTRA_CXXFLAGS%);
15 +                                        std::string("-I/usr/include/mpi ")
16 +                                        + %OCTAVE_CONF_XTRA_CXXFLAGS%);
17  
18    vars["AR"] = get_variable ("AR", %OCTAVE_CONF_MKOCTFILE_AR%);
19    vars["RANLIB"] = get_variable ("RANLIB", %OCTAVE_CONF_MKOCTFILE_RANLIB%);