Explicitly link libelf and libdw with -lz.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2015-10-16 Mark Wielaard <mjw@redhat.com>
+
+ * configure.ac: Make zlib mandatory.
+
2015-10-15 Mark Wielaard <mjw@redhat.com>
* configure.ac: Set version to 0.164.
AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
-dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am
-dnl conditional and config.h USE_ZLIB/USE_BZLIB #define.
+dnl zlib is mandatory.
save_LIBS="$LIBS"
LIBS=
eu_ZIPLIB(zlib,ZLIB,z,gzdirect,gzip)
+AS_IF([test "x$with_zlib" = xno], [AC_MSG_ERROR("zlib not found")])
+LIBS="$save_LIBS"
+
+dnl Test for bzlib and xz/lzma, gives BZLIB/LZMALIB .am
+dnl conditional and config.h USE_BZLIB/USE_LZMALIB #define.
+save_LIBS="$LIBS"
+LIBS=
eu_ZIPLIB(bzlib,BZLIB,bz2,BZ2_bzdopen,bzip2)
eu_ZIPLIB(lzma,LZMA,lzma,lzma_auto_decoder,[LZMA (xz)])
zip_LIBS="$LIBS"
+2015-10-16 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (libdw.so): Add -lz.
+
2015-10-14 Chih-Hung Hsieh <chh@google.com>
* cfi.c (execute_cfi): Move nested functions 'enough_registers'
-Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
-Wl,--version-script,$<,--no-undefined \
-Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
- -ldl $(argp_LDADD) $(zip_LIBS)
+ -ldl -lz $(argp_LDADD) $(zip_LIBS)
@$(textrel_check)
$(AM_V_at)ln -fs $@ $@.$(VERSION)
+2015-10-16 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (libelf_so_LDLIBS): Add -lz.
+
2015-10-14 Mark Wielaard <mjw@redhat.com>
* elf.h: Update from glibc. Add section compression constants and
libelf_pic_a_SOURCES =
am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)
-libelf_so_LDLIBS =
+libelf_so_LDLIBS = -lz
if USE_LOCKS
libelf_so_LDLIBS += -lpthread
endif
2015-10-16 Mark Wielaard <mjw@redhat.com>
+ * Makefile.am [BUILD_STATIC](libdw): Add -lz.
+ [BUILD_STATIC](libelf): Likewise.
+
+2015-10-16 Mark Wielaard <mjw@redhat.com>
+
* elflint.c (check_symtab): Don't check TLS symbol value against TLS
phdr offset in debuginfo files.
(check_sections): Don't try to match section offsets to phdrs offsets
if BUILD_STATIC
libasm = ../libasm/libasm.a
-libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-libelf = ../libelf/libelf.a
+libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl
+libelf = ../libelf/libelf.a -lz
else
libasm = ../libasm/libasm.so
libdw = ../libdw/libdw.so
2015-10-16 Mark Wielaard <mjw@redhat.com>
+ * Makefile.am [BUILD_STATIC] (libdw): Add -lz.
+ [BUILD_STATIC] (libelf): Likewise.
+
+2015-10-16 Mark Wielaard <mjw@redhat.com>
+
* Makefile.am (dwfl_proc_attach_LDFLAGS): Add AM_LDFLAGS.
2015-10-09 Josh Stone <jistone@redhat.com>
libebl = -lebl
else !STANDALONE
if BUILD_STATIC
-libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-libelf = ../libelf/libelf.a
+libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl
+libelf = ../libelf/libelf.a -lz
libasm = ../libasm/libasm.a
else
libdw = ../libdw/libdw.so