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: JohnD
Subject: RE: set cywin spefic flag in mk files in mxe-octave
Date: Wed, 6 Jul 2016 09:04:35 -0400

> 
> Message: 6
> Date: Wed, 6 Jul 2016 19:55:18 +0900 (JST)
> From: Tatsuro MATSUOKA <address@hidden>
> To: "address@hidden" <address@hidden>
> Subject: set cywin spefic flag in mk files in mxe-octave
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
> 
> 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
> 
> 

Take a look at build-libtool.mk, it uses a variable $(PKG)_CONFIGURE_OPTIONS
that it sets depending on MXE_SYSTEM value and gets passed into the
configure call.




reply via email to

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