I have built a cross-compiler according to the instructions on the Wiki, ported dash, and now I'd like to port ncurses and nano for my OS. I have already built ncurses: no error occured during the build process. After building it, I installed it and I could check that I had all the includes and the static libraries I needed. My ncurses version is 5.9.
However, things became a little more tricky when I tried to port nano... Indeed, at linking time I got plently of undefined references: all these references were symbols defined in libncurses.a (I could check it by analyzing the file, I disassembled it with objdump).
The linking command was the following:
Code: Select all
i586-pc-myos-gcc -g -O2 -o nano browser.o chars.o color.o cut.o files.o global.o help.o move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o
Code: Select all
i586-pc-myos-gcc -g -O2 -o nano /usr/local/cross/i586-pc-myos/lib/libncurses.a browser.o chars.o color.o cut.o files.o global.o help.o move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o
Thanks in advance.