From e4a5a7a5929ee43252590dd5bc835460eb21ba96 Mon Sep 17 00:00:00 2001 From: Horst Schirmeier Date: Sun, 8 Sep 2013 22:15:14 +0200 Subject: [PATCH] util: gzstream needs zlib This change is needed to build on Ubuntu 13.04. Change-Id: I683ed4427044264f58bc8f7c94cb5fbbff89cd95 --- src/core/util/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/util/CMakeLists.txt b/src/core/util/CMakeLists.txt index de9ed96d..77775dc0 100644 --- a/src/core/util/CMakeLists.txt +++ b/src/core/util/CMakeLists.txt @@ -48,6 +48,10 @@ if(${LIB_IBERTY} STREQUAL LIB_IBERTY-NOTFOUND) message(FATAL_ERROR "libiberty not found. Try installing binutils-dev: [ sudo aptitude install binutils-dev ]") endif() +# libz required by gzstream +find_package(ZLIB REQUIRED) +include_directories(${ZLIB_INCLUDE_DIRS}) + # objdump required by Diassembler.cc set(THE_OBJDUMP "${ARCH_TOOL_PREFIX}objdump") @@ -61,7 +65,7 @@ mark_as_advanced(FAIL_OBJDUMP) add_library(fail-util ${SRCS}) add_dependencies(fail-util fail-comm) -target_link_libraries(fail-util ${PROTOBUF_LIBRARY} ${Boost_LIBRARIES} ${LIB_IBERTY} ) +target_link_libraries(fail-util ${PROTOBUF_LIBRARY} ${Boost_LIBRARIES} ${LIB_IBERTY} ${ZLIB_LIBRARIES}) option(BUILD_LLVM_DISASSEMBLER "Build the LLVM-based disassembler (LLVM 3.3 preferred, for 3.1 and 3.2 read doc/how-to-build.txt)" OFF) if (BUILD_LLVM_DISASSEMBLER)