diff options
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 9d60b35..9f5c00a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,9 +46,11 @@ opkg_opk_SOURCES = opkg_opk_CFLAGS = \ $(WARN_CFLAGS) \ $(ASAN_CFLAGS) -opkg_opk_CPPFLAGS = +opkg_opk_CPPFLAGS = \ + $(ZLIB_CFLAGS) opkg_opk_LDADD = \ - $(ASAN_CFLAGS) + $(ASAN_CFLAGS) \ + $(ZLIB_LIBS) opkg_opk_LINK = $(LINK) version.c EXTRA_opkg_opk_DEPENDENCIES = version.c CLEANFILES = version.c diff --git a/configure.ac b/configure.ac index 800849c..3f2dde0 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,9 @@ AC_PROG_CC() AM_PROG_CC_C_O() test -d "${srcdir}/.git" || CFLAGS="${save_CFLAGS}" +PKG_PROG_PKG_CONFIG() +PKG_CHECK_MODULES([ZLIB], [zlib]) + AX_CFLAGS_WARN_ALL() dnl Adds -Wall or equivalent AX_CHECK_COMPILE_FLAG([-Wpedantic], [AX_APPEND_FLAG([-Wpedantic])]) AX_CHECK_COMPILE_FLAG([-Wextra], [AX_APPEND_FLAG([-Wextra])]) |