octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55033] mkoctfile link failure on macos


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #55033] mkoctfile link failure on macos
Date: Tue, 1 Jan 2019 07:17:49 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15

Follow-up Comment #18, bug #55033 (project octave):

The patch below *almost* works.


diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -2759,7 +2759,7 @@ if test $link_all_deps = yes; then
   OCT_GUI_LINK_DEPS="libgui/liboctgui.la libinterp/liboctinterp.la
liboctave/liboctave.la"
 
   MKOCTFILE_OCTAVE_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS
$MKOCTFILE_LIBOCTAVE_LINK_DEPS"
-  MKOCTFILE_OCT_LINK_DEPS="$OCT_LINK_DEPS $MKOCTFILE_LIBOCTINTERP_LINK_DEPS"
+  MKOCTFILE_OCT_LINK_DEPS="$LIBOCTINTERP $LIBOCTAVE"
 
   LIBOCTINTERP_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS $LIBOCTAVE_LINK_DEPS"
   LIBOCTINTERP_LINK_OPTS="$LIBOCTINTERP_LINK_OPTS $LIBOCTAVE_LINK_OPTS"


It is still necessary to add the path to Octave's libs.


OCTLIBDIR = mkoctfile ('-p', 'OCTLIBDIR');
OCTLIBDIR(OCTLIBDIR < ' ') = [];
OCTLIBDIR = sprintf ('-L%s/', OCTLIBDIR);
mkoctfile (OCTLIBDIR, 'example.cc')


I don't see how to include the OCTLIBDIR in configure.ac. If there isn't a
way, I'll need to add the -L$OCTLIBDIR in mkoctfile.in.cc. Thoughts?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55033>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]