mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 02:36:21 +00: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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user