commit 3142d471e1c0415c00cefa0be2c56c57f66411c9
parent 045664107e8ef1b4c854a3a0a6ed7b666f5d6eb8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 24 Apr 2025 09:37:28 +0200
build: swap two linker arguments, to enable compilation on Cygwin
Since nano-8.1 (which moved to gettext-0.20), compiling on Cygwin
failed with: "undefined reference to `libintl_dgettext'". Avoid
this by moving the '-lintl' argument to after the gnulib one.
Reported-by: Philippe Baril Lecavalier <pbl.ltx@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -42,7 +42,7 @@ nano_SOURCES = \
utils.c \
winio.c
-nano_LDADD = @LIBINTL@ $(top_builddir)/lib/libgnu.a \
+nano_LDADD = $(top_builddir)/lib/libgnu.a @LIBINTL@ \
$(GETRANDOM_LIB) $(CLOCK_TIME_LIB) $(LIBTHREAD)
install-exec-hook: