changeset 25491:b3c68525ed82

link oct files with liboctave and libinterp in cross compile tools (Bug #53627) * src/mkoctfile.in.cc: us defined(CROSS) as additional check for including libs/flags
author John Donoghue
date Thu, 21 Jun 2018 12:42:11 -0400
parents 9feda91c8592
children 7cdda3ad947f
files src/mkoctfile.in.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/mkoctfile.in.cc	Thu Jun 21 11:06:52 2018 -0400
+++ b/src/mkoctfile.in.cc	Thu Jun 21 12:42:11 2018 -0400
@@ -164,7 +164,7 @@
 
   std::string DEFAULT_LFLAGS;
 
-#if defined (OCTAVE_USE_WINDOWS_API)
+#if defined (OCTAVE_USE_WINDOWS_API) || defined(CROSS)
 
   // We'll be linking with -loctinterp and -loctave, so we need to know
   // where to find them.
@@ -877,7 +877,7 @@
   if (link && ! objfiles.empty ())
     {
       std::string octave_libs;
-#if defined (OCTAVE_USE_WINDOWS_API)
+#if defined (OCTAVE_USE_WINDOWS_API) || defined(CROSS)
       octave_libs = "-loctinterp -loctave";
 #endif