octave-maintainers
[Top][All Lists]
Advanced

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

Re: msvc specific linker flags in mkoctfile.cc.in


From: Benjamin Lindner
Subject: Re: msvc specific linker flags in mkoctfile.cc.in
Date: Sun, 24 May 2009 09:55:53 +0200
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Benjamin Lindner wrote:
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.



Sorry, now again as hg exported changeset. I keep mixing changesets and mq patches...

benjamin
# HG changeset patch
# User Benjamin Lindner <address@hidden>
# Date 1243068028 -7200
# Node ID 4d7cd25337b86a30a45fe4af1c252559651605c3
# Parent  26d66111668156c5a36407119f62d8c3af924d5b
properly #ifdef MSVC linker specific flags

diff -r 26d661116681 -r 4d7cd25337b8 ChangeLog
--- a/ChangeLog Sat May 23 10:40:24 2009 +0200
+++ b/ChangeLog Sat May 23 10:40:28 2009 +0200
@@ -26,6 +26,10 @@
        (clean): Remove mkoctfile$(EXEEXT), octave-config$(EXEEXT),
        octave-bug$(EXEEXT) and the corresponding object files.
 
+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 26d661116681 -r 4d7cd25337b8 mkoctfile.cc.in
--- a/mkoctfile.cc.in   Sat May 23 10:40:24 2009 +0200
+++ b/mkoctfile.cc.in   Sat May 23 10:40:28 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]