about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2012-10-23 13:45:33 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2012-10-23 13:45:33 +0300
commitc2e94bfb20ad67a9f4986757a0672adf943e35f4 (patch)
tree367e485eb3851fd35b7ead48fdad23a91ff48cbe
parenta16c53f53a434464f49315c1943c9b64e9cfcefc (diff)
downloadprofani-tty-c2e94bfb20ad67a9f4986757a0672adf943e35f4.tar.gz
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.
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 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"