mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/opencascade: avoid pre-stripping binaries
Remove cmake settings for gcc and clang to not strip the binaries during linking stage. Closes: https://bugs.gentoo.org/831800 Bug: https://dev.opencascade.org/content/dont-pre-strip-binaries Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/25764 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
04a868c8a4
commit
b62d48ddf7
@@ -0,0 +1,33 @@
|
||||
https://bugs.gentoo.org/831800
|
||||
https://dev.opencascade.org/content/dont-pre-strip-binaries
|
||||
|
||||
From 88e59e0199daaf66184833e366e9deb1299078a9 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Waibel <waebbl-gentoo@posteo.net>
|
||||
Date: Sun, 5 Jun 2022 09:48:09 +0200
|
||||
Subject: [PATCH] avoid pre-stripping binaries
|
||||
|
||||
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
|
||||
--- a/adm/cmake/occt_defs_flags.cmake
|
||||
+++ b/adm/cmake/occt_defs_flags.cmake
|
||||
@@ -133,8 +133,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang")
|
||||
# does not support option "-std=c++0x"
|
||||
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
- # Optimize size of binaries
|
||||
- set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
elseif(MINGW)
|
||||
add_definitions(-D_WIN32_WINNT=0x0601)
|
||||
# _WIN32_WINNT=0x0601 (use Windows 7 SDK)
|
||||
@@ -150,9 +148,6 @@ elseif(MINGW)
|
||||
elseif (DEFINED CMAKE_COMPILER_IS_GNUCXX)
|
||||
# Require C++11
|
||||
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
|
||||
- # Optimize size of binaries
|
||||
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||
- set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
|
||||
endif()
|
||||
|
||||
if (BUILD_RELEASE_DISABLE_EXCEPTIONS)
|
||||
--
|
||||
2.35.1
|
||||
|
||||
@@ -67,6 +67,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch
|
||||
"${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -67,6 +67,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch
|
||||
"${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -64,6 +64,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
|
||||
"${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -64,6 +64,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
|
||||
"${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -64,6 +64,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
|
||||
"${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
|
||||
"${FILESDIR}"/${P}-avoid-pre-stripping-binaries.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user