Skip to content

Commit 4e60daf

Browse files
committed
disable symbol visiblity flags for globe plugin on release builds on trusty
(cherry picked from commit 1bb98d6)
1 parent 3eb7f39 commit 4e60daf

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

debian/rules

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ endif
142142

143143
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
144144
CMAKE_OPTS += -DCMAKE_BUILD_TYPE=Debug
145+
else
146+
ifneq (,$(findstring $(DISTRIBUTION),"trusty"))
147+
CMAKE_OPTS += -DKEEP_GLOBE_CXX_FLAGS=TRUE
148+
endif
145149
endif
146150

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

src/plugins/CMakeLists.txt

+1
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

+3
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)