1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

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:
Dmitry Podgorny 2012-10-23 13:45:33 +03:00
parent a16c53f53a
commit c2e94bfb20

View File

@ -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"