[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:45:48 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=ac778af

The following commit has been merged in the master branch:
commit ac778afbe7fc4f69d205ec10855d4b1227fb1585
Author: Robin Mills <robin at clanmills.com>
Date:   Sat Oct 3 20:05:05 2015 +0000

    #1123.  Hide xmpsdk symbols when building with CMake.
---
 xmpsdk/CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt
index 9e19565..cf03a4e 100644
--- a/xmpsdk/CMakeLists.txt
+++ b/xmpsdk/CMakeLists.txt
@@ -20,6 +20,14 @@ FOREACH(_currentfile ${XMPSRC})
     ENDIF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
 ENDFOREACH()
 
+if(NOT MSVC)
+  # http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
+  if ( NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
+    # 1123 - hide xmpsdk symbols
+    add_definitions( -fvisibility=hidden -fvisibility-inlines-hidden )
+  endif()
+endif()
+
 IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
     ADD_LIBRARY( xmp STATIC ${XMPSRC} )
     GET_TARGET_PROPERTY( XMPLIB xmp LOCATION )

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list