octave-maintainers
[Top][All Lists]
Advanced

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

msvc specific linker flags in mkoctfile.cc.in


From: Benjamin Lindner
Subject: msvc specific linker flags in mkoctfile.cc.in
Date: Fri, 22 May 2009 15:52:32 +0200
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Hello,

There is a msvc-linker-specific flag in mkoctfile.cc.in with -mex output. This should be used only on msvc, not on mingw, since mingw's ld does not recognize it (well, it recognizes it, but interprets differently, leading to linker errors)

the attached changeset #ifdefs the corresponding statement.

benjamin
properly #ifdef MSVC linker specific flags

diff -r e310b99724e6 ChangeLog
--- a/ChangeLog Thu May 21 13:14:18 2009 +0200
+++ b/ChangeLog Fri May 22 15:46:38 2009 +0200
@@ -1,3 +1,7 @@
+2009-05-22 Benjamin Lindner <address@hidden>
+
+       * mkoctfile.cc.in: mask MSVC specific linker flags for mex output
+
 2009-05-07  Rik <address@hidden>
 
        * README.mirrors: Remove invalid mirror sites which no longer exist.
diff -r e310b99724e6 mkoctfile.cc.in
--- a/mkoctfile.cc.in   Thu May 21 13:14:18 2009 +0200
+++ b/mkoctfile.cc.in   Fri May 22 15:46:38 2009 +0200
@@ -533,7 +533,9 @@
       else if (arg == "--mex")
        {
          incflags += " -I.";
+#ifdef _MSC_VER
          ldflags += " -Wl,-export:mexFunction";
+#endif
          output_ext = ".mex";
        }
       else if (starts_with (arg, "-W"))

reply via email to

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