From c2e94bfb20ad67a9f4986757a0672adf943e35f4 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Tue, 23 Oct 2012 13:45:33 +0300 Subject: [PATCH] autotools: move libraries to LIBS instead of AM_CFLAGS Libraries are agruments for linker. So move them to LIBS vatiable. AC_CHECK_LIB adds library to LIBS on success and we don't have to add them manually. --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 246029cc..9e4b18c6 100644 --- a/configure.ac +++ b/configure.ac @@ -51,8 +51,7 @@ PKG_CHECK_MODULES([NOTIFY], [libnotify], [], [AC_MSG_NOTICE([libnotify module not found])]) AM_CFLAGS="-Wall " -AM_CFLAGS="$AM_CFLAGS -lstrophe -lncurses -lcurl -lresolv " -AM_CFLAGS="$AM_CFLAGS $DEPS_LIBS $NOTIFY_LIBS" +LIBS="$LIBS $DEPS_LIBS $NOTIFY_LIBS" AM_CPPFLAGS="$DEPS_CFLAGS $NOTIFY_CFLAGS"