Re: [PATCH] link -lintl at the end
Philippe Baril Lecavalier <[email protected]> Thu, 24 Apr 2025 02:50:36 -0400
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <CABu4Xf6UR1AS79baTx+cdvAxS-9kCbigKxjSBQ+rn=jNrGiarQ@mail.gmail.com> |
Sorry, my reply went to just you, not the mailing list.
I tried, and yes, that variation works too, placed just after
`lib/libgnu.a`. Needs to be linked at the end but not necessarily the
last linked library, at least for now.
That last one translates as this on my side
gcc -ggdb -O2 -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=3 -fstack-protector-strong
--param=ssp-buffer-size=4
-ffile-prefix-map=/tmp/ramfs/nano-8.4-1.x86_64/build=/usr/src/debug/nano-8.4-1
-ffile-prefix-map=/tmp/ramfs/nano-8.4-1.x86_64/src/nano-8.4=/usr/src/debug/nano-8.4-1
-Wall -o nano.exe browser.o chars.o color.o cut.o files.o global.o
help.o history.o move.o nano.o prompt.o rcfile.o search.o text.o
utils.o winio.o ../lib/libgnu.a -lintl -lz -lmagic -lncursesw
But... WHY? I sense your question is "Please fill the air with your
intelligence, enlighten me on those compiler and linker mysteries so
that I too can bask in superior programming skills." Unfortunately, I
can't say much more than:
1. That works now.
2. The FAQ of GNU gettext (linked above) advises to do that.
--
pbl