Il 20/06/2016 09:43, Alex Peshkoff ha scritto:
> On 06/19/2016 06:58 PM, Fulvio Senore wrote:
>
>> Thank you for your answer. I have spent some time trying to do it but I
>> have not been able to force the makefile to use the static ncurses
>> library instead of the so file. Unfortunately my knowledge of the build
>> chain is very limited.
>>
>> May anybody suggest me how to force the make command to use
>> /usr/lib/libncurses.a instead of -lncurses?
>>
>> I am almost desperate enough to extract the linker command from the make
>> log, edit it and execute it manually. I just hope to find a better way.
>
> You should start the build with autogen.sh. First of all make sure you
> complete it w/o changes.
> Next find in configure.in this place:
>
>      AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \
>          AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \
>              AC_CHECK_LIB(termcap, tgetent, TERMLIB=termcap, \
>                  AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \
>                      AC_MSG_ERROR(termcap support not found)))))..
>      AC_SUBST(TERMLIB)
>      XE_APPEND(-l$TERMLIB, LIBS)
>
> And replace last line with something like
>
>      XE_APPEND(/usr/lib/libncurses.a, LIBS)
>

Thank you for your help: that solved my problem. I have been able to 
statically link libncurses in the embedded server and it is working 
correctly.

I would never had been able to figure out this solution by myself.

Fulvio Senore

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to