Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 942794 | Differences between
and this patch

Collapse All | Expand All

(-)a/sci-libs/opencascade/files/opencascade-7.8.2-avoid-pre-stripping-binaries.patch (+25 lines)
Line 0 Link Here
1
diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake
2
index ec31fdd80..26411ba6a 100644
3
--- a/adm/cmake/occt_defs_flags.cmake
4
+++ b/adm/cmake/occt_defs_flags.cmake
5
@@ -173,8 +173,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "[Cc][Ll][Aa][Nn][Gg]")
6
     # CLang can be used with both libstdc++ and libc++, however on OS X libstdc++ is outdated.
7
     set (CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
8
   endif()
9
-  # Optimize size of binaries
10
-  set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
11
 endif()
12
 if(MINGW)
13
   add_definitions(-D_WIN32_WINNT=0x0601)
14
@@ -183,11 +181,6 @@ if(MINGW)
15
   # workaround bugs in mingw with vtable export
16
   set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols")
17
 endif()
18
-if (DEFINED CMAKE_COMPILER_IS_GNUCXX)
19
-  # Optimize size of binaries
20
-  set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
21
-  set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
22
-endif()
23
 
24
 if (BUILD_RELEASE_DISABLE_EXCEPTIONS)
25
   set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNo_Exception")
(-)a/sci-libs/opencascade/files/opencascade-7.8.2-jemalloc-lib-type.patch (+26 lines)
Line 0 Link Here
1
diff --git a/adm/cmake/jemalloc.cmake b/adm/cmake/jemalloc.cmake
2
index 579ed3e15..08917d94c 100644
3
--- a/adm/cmake/jemalloc.cmake
4
+++ b/adm/cmake/jemalloc.cmake
5
@@ -67,6 +67,7 @@ macro (JEMALLOC_LIB_SEARCH MMGR_LIB PREFIX)
6
 endmacro()
7
 
8
 macro (SEARCH_JEMALLOC)
9
+if(BUILD_LIBRARY_TYPE EQUAL "Static")
10
   # find static jemalloc lib
11
   SET(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a")
12
   if (WIN32)
13
@@ -76,10 +77,13 @@ macro (SEARCH_JEMALLOC)
14
     SET(CMAKE_FIND_LIBRARY_SUFFIXES "" "so")
15
     JEMALLOC_LIB_SEARCH ("jemalloc.so.2" "SHARED")
16
   endif()
17
+endif()
18
   
19
+if(BUILD_LIBRARY_TYPE EQUAL "Shared")
20
   # find shared jemalloc lib
21
   SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".so")
22
   JEMALLOC_LIB_SEARCH ("jemalloc" "SHARED")
23
+endif()
24
 endmacro()
25
 
26
 # Reset CSF variable
(-)a/sci-libs/opencascade/opencascade-7.8.1.ebuild (-1 lines)
Lines 104-110 PATCHES=( Link Here
104
	"${FILESDIR}/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch"
104
	"${FILESDIR}/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch"
105
	"${FILESDIR}/${PN}-7.7.0-fix-installation-of-cmake-config-files.patch"
105
	"${FILESDIR}/${PN}-7.7.0-fix-installation-of-cmake-config-files.patch"
106
	"${FILESDIR}/${PN}-7.7.0-avoid-pre-stripping-binaries.patch"
106
	"${FILESDIR}/${PN}-7.7.0-avoid-pre-stripping-binaries.patch"
107
	"${FILESDIR}/${PN}-7.7.0-build-against-vtk-9.2.patch"
108
	"${FILESDIR}/${PN}-7.7.0-musl.patch"
107
	"${FILESDIR}/${PN}-7.7.0-musl.patch"
109
	"${FILESDIR}/${PN}-7.7.0-tbb-detection.patch"
108
	"${FILESDIR}/${PN}-7.7.0-tbb-detection.patch"
110
	"${FILESDIR}/${PN}-7.7.0-jemalloc-lib-type.patch"
109
	"${FILESDIR}/${PN}-7.7.0-jemalloc-lib-type.patch"
(-)a/sci-libs/opencascade/opencascade-9999.ebuild (-5 / +2 lines)
Lines 101-115 BDEPEND=" Link Here
101
101
102
PATCHES=(
102
PATCHES=(
103
	"${FILESDIR}/${PN}-7.7.0-fix-installation-of-cmake-config-files.patch"
103
	"${FILESDIR}/${PN}-7.7.0-fix-installation-of-cmake-config-files.patch"
104
	"${FILESDIR}/${PN}-7.7.0-avoid-pre-stripping-binaries.patch"
105
	"${FILESDIR}/${PN}-7.7.0-build-against-vtk-9.2.patch"
106
	"${FILESDIR}/${PN}-7.7.0-musl.patch"
104
	"${FILESDIR}/${PN}-7.7.0-musl.patch"
107
	"${FILESDIR}/${PN}-7.7.0-tbb-detection.patch"
108
	"${FILESDIR}/${PN}-7.7.0-jemalloc-lib-type.patch"
109
	"${FILESDIR}/${PN}-7.8.0-cmake-min-version.patch"
110
	"${FILESDIR}/${PN}-7.8.0-tests.patch"
105
	"${FILESDIR}/${PN}-7.8.0-tests.patch"
111
	"${FILESDIR}/${PN}-7.8.0-jemalloc-noexcept.patch"
106
	"${FILESDIR}/${PN}-7.8.0-jemalloc-noexcept.patch"
112
	"${FILESDIR}/${PN}-7.8.1-vtk_components.patch"
107
	"${FILESDIR}/${PN}-7.8.1-vtk_components.patch"
108
	"${FILESDIR}/${PN}-7.8.2-avoid-pre-stripping-binaries.patch"
109
	"${FILESDIR}/${PN}-7.8.2-jemalloc-lib-type.patch"
113
)
110
)
114
111
115
src_unpack() {
112
src_unpack() {

Return to bug 942794