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.
This commit is contained in:
@@ -51,8 +51,7 @@ PKG_CHECK_MODULES([NOTIFY], [libnotify], [],
|
|||||||
[AC_MSG_NOTICE([libnotify module not found])])
|
[AC_MSG_NOTICE([libnotify module not found])])
|
||||||
|
|
||||||
AM_CFLAGS="-Wall "
|
AM_CFLAGS="-Wall "
|
||||||
AM_CFLAGS="$AM_CFLAGS -lstrophe -lncurses -lcurl -lresolv "
|
LIBS="$LIBS $DEPS_LIBS $NOTIFY_LIBS"
|
||||||
AM_CFLAGS="$AM_CFLAGS $DEPS_LIBS $NOTIFY_LIBS"
|
|
||||||
|
|
||||||
AM_CPPFLAGS="$DEPS_CFLAGS $NOTIFY_CFLAGS"
|
AM_CPPFLAGS="$DEPS_CFLAGS $NOTIFY_CFLAGS"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user