blob: 269cfa2424f5e579ba69d9729895d76d97b67b59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-cmake_PluginConfigure.cmake,v 1.2 2016/05/21 10:50:41 bouyer Exp $
Do not overwrite CMAKE_SHARED_LINKER_FLAGS
--- cmake/PluginConfigure.cmake.orig 2016-04-13 23:56:21.000000000 +0200
+++ cmake/PluginConfigure.cmake 2016-05-21 12:26:00.398634165 +0200
@@ -40,11 +40,13 @@
ADD_DEFINITIONS( "-Wall -Wno-unused-result -g -O0 -fexceptions" )
ENDIF(PROFILING)
- IF(NOT APPLE)
- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
- ELSE(NOT APPLE)
+ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic")
+ ADD_DEFINITIONS( "-fPIC")
+ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ IF(APPLE)
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup")
- ENDIF(NOT APPLE)
+ ENDIF(APPLE)
ENDIF(NOT MSVC)
|