Skip to content

Commit 1bb98d6

Browse files
committedMar 26, 2016
disable symbol visiblity flags for globe plugin on release builds on trusty
1 parent ea85bef commit 1bb98d6

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
 

‎debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ endif
135135

136136
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
137137
CMAKE_OPTS += -DCMAKE_BUILD_TYPE=Debug
138+
else
139+
ifneq (,$(findstring $(DISTRIBUTION),"trusty"))
140+
CMAKE_OPTS += -DKEEP_GLOBE_CXX_FLAGS=TRUE
141+
endif
138142
endif
139143

140144
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))

‎src/plugins/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
IF (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2+
SET(CMAKE_CXX_FLAGS_OLD "${CMAKE_CXX_FLAGS}")
23
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
34
ENDIF()
45
# override default path where built files are put to allow running qgis without installing

‎src/plugins/globe/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# set path to additional CMake modules
22
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules ${CMAKE_MODULE_PATH})
3+
IF (KEEP_GLOBE_CXX_FLAGS)
4+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_OLD}")
5+
ENDIF()
36

47
FIND_PACKAGE(OSG REQUIRED)
58
FIND_PACKAGE(OSGEARTH REQUIRED)

0 commit comments

Comments
 (0)
Please sign in to comment.