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: Tatsuro MATSUOKA
Subject: Re: MXE Octave - How to pass flag to linker?
Date: Thu, 6 Apr 2017 18:35:03 +0900 (JST)




----- Original Message -----
> From: mmuetzel 
> To: octave-maintainers
> Date: 2017/4/6, Thu 17:27
> Subject: Re: MXE Octave - How to pass flag to linker?
> 
>T atsuro, 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
> 


Perhaps you should add linker flag to add "-Wl,"

 -L$($(PKG)_QTDIR)/lib -Wl,-municode' \


Tatsuro



reply via email to

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