From d2633be28487f7b9adf1cce612ca781b236f2700 Mon Sep 17 00:00:00 2001 From: "bas@zoetekouw.net" Date: Tue, 8 Aug 2017 19:25:34 +0200 Subject: [PATCH] Fix link order in ncurses autoconf test Thanks to Steve McIntyre for the patch (https://bugs.debian.org/646486) --- macros/curses.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/curses.m4 b/macros/curses.m4 index b42fe7c..415eecf 100644 --- a/macros/curses.m4 +++ b/macros/curses.m4 @@ -254,11 +254,11 @@ dnl check if the curses header we found, works dnl AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ - dnl save CFLAGS and LDFLAGS and set new ones + dnl save CFLAGS and LIBS and set new ones CFLAGS_OLD=$CFLAGS CFLAGS="$CFLAGS $curses_includes" - LDFLAGS_OLD=$LDFLAGS - LDFLAGS="$LDFLAGS $curses_libs" + LIBS_OLD=$LIBS + LIBS="$LIBS $curses_libs" dnl do the compile test AC_MSG_CHECKING([if curses is usable]) @@ -288,7 +288,7 @@ AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ dnl restore variables CFLAGS=$CFLAGS_OLD - LDFLAGS=$LDFLAGS_OLD + LIBS=$LIBS_OLD ]) -- 2.33.0