octave-maintainers
[Top][All Lists]
Advanced

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

Re: MXE Octave - How to pass flag to linker?


From: mmuetzel
Subject: Re: MXE Octave - How to pass flag to linker?
Date: Thu, 6 Apr 2017 01:27:19 -0700 (PDT)

Tatsuro, thank you for your help.

So I might have been on the right track. I tried to add the switch here:
diff -r ce6c155a45ba src/default-octave.mk
--- a/src/default-octave.mk     Wed Mar 29 07:54:36 2017 -0400
+++ b/src/default-octave.mk     Tue Apr 04 22:15:01 2017 +0200
@@ -115,7 +115,9 @@
 else
   $(PKG)_PREFIX := '$(HOST_PREFIX)'
   $(PKG)_EXTRA_CONFIGURE_OPTIONS := \
-    LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)
-L$($(PKG)_QTDIR)/lib'
+    LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)
-L$($(PKG)_QTDIR)/lib -municode' \
+    CFLAGS='-DUNICODE -D_UNICODE' \
+    CXXFLAGS='-DUNICODE -D_UNICODE'
 endif

However with that switches, configure failed to link its test files.
Probably because with that switches the expected entry point is "wmain()"
instead of "main()". See also [2] for what I tried (and failed). I am
clearly no expert in reading make files.

Where would I need to add those switches so they only apply when the Octave
executables are linked?

[2] https://savannah.gnu.org/bugs/?47571




--
View this message in context: 
http://octave.1599824.n4.nabble.com/MXE-Octave-How-to-pass-flag-to-linker-tp4682743p4682756.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

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