maekke 14/09/14 09:05:47 Added: lensfun-0.2.8-support-clang-visibility-as-gcc.patch Log: add support for building with clang by Fabio Scaccabarozzi in bug #519006 (Portage version: 2.2.12-r1/cvs/Linux x86_64, signed Manifest commit with key 072AD062)
Revision Changes Path 1.1 media-libs/lensfun/files/lensfun-0.2.8-support-clang-visibility-as-gcc.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lensfun/files/lensfun-0.2.8-support-clang-visibility-as-gcc.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lensfun/files/lensfun-0.2.8-support-clang-visibility-as-gcc.patch?rev=1.1&content-type=text/plain Index: lensfun-0.2.8-support-clang-visibility-as-gcc.patch =================================================================== https://bugs.gentoo.org/show_bug.cgi?id=519006 diff -Nuar lensfun-0.2.8.orig/include/lensfun/lensfun.h.in lensfun-0.2.8/include/lensfun/lensfun.h.in --- lensfun-0.2.8.orig/include/lensfun/lensfun.h.in 2013-01-27 17:32:37.000000000 +0100 +++ lensfun-0.2.8/include/lensfun/lensfun.h.in 2014-08-05 08:14:20.096691200 +0200 @@ -62,7 +62,7 @@ # ifdef CONF_SYMBOL_VISIBILITY # if defined PLATFORM_WINDOWS # define LF_EXPORT __declspec(dllexport) -# elif defined CONF_COMPILER_GCC +# elif defined CONF_COMPILER_GCC || __clang__ # define LF_EXPORT __attribute__((visibility("default"))) # else # error "I don't know how to change symbol visibility for your compiler"
