From: jiyong.min Date: Mon, 3 Feb 2020 23:29:45 +0000 (+0900) Subject: Fix build error for giflib 5.1.9 X-Git-Tag: accepted/tizen/unified/20200211.055805~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90612b8bdeb8cc187d6584fec65d4cdba004c47b;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Fix build error for giflib 5.1.9 - The 'gifutil' library has been added for deprecated 'GifQuantizeBuffer' function. It should be removed since giflib 5.2.0. Change-Id: I263e3fa3cb4ae8622c70b16f4799f83429602141 --- diff --git a/gif/CMakeLists.txt b/gif/CMakeLists.txt index 1c14ff1..e48db32 100644 --- a/gif/CMakeLists.txt +++ b/gif/CMakeLists.txt @@ -38,7 +38,14 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}") aux_source_directory(. SOURCES) ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) +# 2020.02.04 gifutil has been added for deprecated 'GifQuantizeBuffer' +# It should be removed since giflib 5.2.0. +FIND_LIBRARY(HAS_GIFUTIL_LIBRARY NAMES gifutil) +IF(HAS_GIFUTIL_LIBRARY) +TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS} gif gifutil mmutil_common) +ELSE(HAS_GIFUTIL_LIBRARY) TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS} gif mmutil_common) +ENDIF(HAS_GIFUTIL_LIBRARY) SET_TARGET_PROPERTIES(${fw_name} PROPERTIES VERSION ${VERSION} diff --git a/packaging/libmm-utility.spec b/packaging/libmm-utility.spec index e6bcfa1..766f2a5 100755 --- a/packaging/libmm-utility.spec +++ b/packaging/libmm-utility.spec @@ -1,6 +1,6 @@ Name: libmm-utility Summary: Multimedia Framework Utility Library -Version: 0.1.35 +Version: 0.1.36 Release: 0 Group: System/Libraries License: Apache-2.0