octave-maintainers
[Top][All Lists]
Advanced

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

Re: set cywin spefic flag in mk files in mxe-octave


From: address@hidden
Subject: Re: set cywin spefic flag in mk files in mxe-octave
Date: Wed, 6 Jul 2016 21:03:37 +0900 (JST)

--- marco.atzeri
> On 06/07/2016 12:55, Tatsuro MATSUOKA wrote:
> > I am now trying build octave using cygwin64 on win10.
> >
> > I have met error in building build-flex.
> >
> > /bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -no-undefined 
> > -version-info 2:0:0  -o libfl.la -rpath 
> > /cygdrive/d/usr/Tatsu/program/Octave/octaveBuild/mxe/cygwin/stable/usr/lib 
> > libmain.lo libyywrap.lo  -lintl -lm
> > libtool: link: gcc -shared  .libs/libmain.o .libs/libyywrap.o   -lintl  -O2 
> >   -o .libs/cygfl-2.dll -Wl,--enable-auto-image-base -Xlinker --out-implib 
> > -Xlinker .libs/libfl.dll.a
> > .libs/libmain.o: In function `main':
> > /cygdrive/d/usr/Tatsu/program/Octave/octaveBuild/mxe/cygwin/stable/tmp-build-flex/flex-2.5.39/libmain.c:30:
> >  undefined reference to `yylex'
> > /cygdrive/d/usr/Tatsu/program/Octave/octaveBuild/mxe/cygwin/stable/tmp-build-flex/flex-2.5.39/libmain.c:30:(.text.startup+0x11):
> >  relocation truncated to fit: R_X86_64_PC32 against undefined symbol `yylex'
> >
> >
> > Unlike linux, cygwin uses dll as shared libraries  and all symbol should be 
> > defined at linking dll.
> > I see the how cygwin treat this. They use --disable-shared flag for flex.
> > I add --disable-shared to build-flex.mk and build passed.
> >
> > Perhaps this kind of treatments is required for mxe-octave cygwin build.
> >
> > How can I add cygwin case flag mk files?
> >
> > Any suggestions?
> >
> > Tatsuro
> >
> 
> flex is available on cygwin.
> Why do you need to build it again ?
> 
> Regards
> Marco
> 
I know that. But it is a feature of mxe-octave.

Tatsuro



reply via email to

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