[alternatives] building an app that uses gettext
Marco Atzeri
marco.atzeri@gmail.com
Sun Jul 18 08:23:45 GMT 2021
On 18.07.2021 03:47, Doug Henderson via Cygwin-apps wrote:
> HI,
> I have not previously built an app that uses gettext. The relevant
> parts of the makefile are:
>
> VERSION = 1.16
> CFLAGS = -g -Wall -D_GNU_SOURCE
> LDFLAGS += -g
>
> alternatives: alternatives.o
>
> alternatives.o: alternatives.c
> $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c
>
what is the linking recipe for "alternatives" or "alternatives$(EXT)"?
> I am getting many
>
> /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld:
> /usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389:
> undefined reference to `libintl_gettext' >
> messages while linking.
it is defined in libintl.dll.a so LDFLAGS should include -lintl
> I have installed the gettext-devel and libgettextpo-devel and
> libintl-devel packages, but I can't seem to properly rewrite the
> CFLAGS or LDFLAGS despite several attempts.
>
> Can someone recommend a simple cygwin package that uses gettext and
> the cygintl-8.dll
>
> TIA,
> Doug
>
More information about the Cygwin-apps
mailing list