Use AC_CHECK_LIB instead of AC_SEARCH_LIBS, to prevent adding -larchive to global LIBS variable. This gets rid of superfluous dynamic link against libarchive in all built executables (claws-mail and plugins).
This commit is contained in:
parent
b018455356
commit
22e05b492f
|
@ -1096,7 +1096,7 @@ AC_SUBST(LIBSOUP_GNOME_CFLAGS)
|
||||||
AC_SUBST(LIBSOUP_GNOME_LIBS)
|
AC_SUBST(LIBSOUP_GNOME_LIBS)
|
||||||
|
|
||||||
dnl libarchive *****************************************************************
|
dnl libarchive *****************************************************************
|
||||||
AC_SEARCH_LIBS([archive_read_new], [archive],
|
AC_CHECK_LIB([archive], [archive_read_new],
|
||||||
ARCHIVE_LIBS=-larchive
|
ARCHIVE_LIBS=-larchive
|
||||||
HAVE_ARCHIVE=yes
|
HAVE_ARCHIVE=yes
|
||||||
AC_SUBST(ARCHIVE_LIBS),
|
AC_SUBST(ARCHIVE_LIBS),
|
||||||
|
|
Loading…
Reference in a new issue