mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
gui-libs/mir: respect CFLAGS
Fix CFLAGS and add missing dependencies. Closes: https://bugs.gentoo.org/932785 Closes: https://bugs.gentoo.org/932786 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
15
gui-libs/mir/files/mir-2.17.0-remove-debug-flags.patch
Normal file
15
gui-libs/mir/files/mir-2.17.0-remove-debug-flags.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Remove -g flags.
|
||||
https://bugs.gentoo.org/932786
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -62,8 +62,8 @@ set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -g -Wall -pedantic -Wextra -fPIC")
|
||||
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -g -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC")
|
||||
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -Wall -pedantic -Wextra -fPIC")
|
||||
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
|
||||
@@ -16,6 +16,7 @@ IUSE="examples test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/glibmm:2
|
||||
dev-cpp/libxmlpp:2.6
|
||||
dev-cpp/yaml-cpp:=
|
||||
dev-libs/boost:=
|
||||
@@ -27,10 +28,13 @@ RDEPEND="
|
||||
media-libs/libepoxy
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa
|
||||
x11-libs/libdrm
|
||||
sys-apps/util-linux
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libdrm
|
||||
x11-libs/libxcb:=
|
||||
x11-libs/libxkbcommon
|
||||
virtual/libudev:=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
@@ -47,6 +51,11 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# bug 932786
|
||||
"${FILESDIR}/${P}-remove-debug-flags.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
use examples || cmake_comment_add_subdirectory examples/
|
||||
@@ -57,6 +66,7 @@ src_configure() {
|
||||
# wlcs is not packaged
|
||||
-DMIR_ENABLE_WLCS_TESTS=OFF
|
||||
-DMIR_ENABLE_TESTS="$(usex test)"
|
||||
-DMIR_FATAL_COMPILE_WARNINGS=OFF
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
# likely will not work in build environment
|
||||
Reference in New Issue
Block a user