]> git.pld-linux.org Git - packages/OpenImageIO.git/blob - 0002-Fix_IlmBase_issue.patch
- more complete (non-tbb, non-threads) archs lists
[packages/OpenImageIO.git] / 0002-Fix_IlmBase_issue.patch
1 From: "Matteo F. Vescovi" <mfv.debian@gmail.com>
2 Date: Fri, 21 Dec 2012 16:31:29 +0100
3 Subject: Fix_IlmBase_issue
4
5 This first patch hides the private symbols
6 even on kFreeBSD and Hurd, besides Linux.
7 ---
8  src/CMakeLists.txt | 2 +-
9  1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
12 index adb380c..71f9a3e 100644
13 --- a/src/CMakeLists.txt
14 +++ b/src/CMakeLists.txt
15 @@ -130,7 +130,7 @@ if (CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCC)
16          # Turn default symbol visibility to hidden
17          set (VISIBILITY_COMMAND "-fvisibility=hidden -fvisibility-inlines-hidden")
18          add_definitions (${VISIBILITY_COMMAND})
19 -        if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
20 +        if (CMAKE_SYSTEM_NAME MATCHES "Linux|kFreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "GNU")
21              # Linux: also hide all the symbols of dependent libraries to
22              # prevent clashes if an app using OIIO is linked against
23              # other verions of our dependencies.
This page took 0.1538 seconds and 3 git commands to generate.