修复编译 rpm 时获取调试信息失败问题 (#3151)

Release 8.0 之后, 编译 rpm 会出现获取调试信息失败问题,  导致 rpm 打包失败

虽然说可以禁用调试包生成来规避问题, 但个人认为在编译 DEBUG 版本时生成调试信息包还是有必要的
This commit is contained in:
snysmtx 2023-12-22 17:40:42 +08:00 committed by GitHub
parent a17b950b21
commit 8f4e76406c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -193,6 +193,12 @@ if(UNIX)
"-Wall;-Wextra" "-Wall;-Wextra"
"-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable" "-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable"
"-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits") "-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits")
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(COMPILE_OPTIONS_DEFAULT ${COMPILE_OPTIONS_DEFAULT} "-g3")
else()
set(COMPILE_OPTIONS_DEFAULT ${COMPILE_OPTIONS_DEFAULT} "-g0")
endif()
elseif(WIN32) elseif(WIN32)
if (MSVC) if (MSVC)
set(COMPILE_OPTIONS_DEFAULT set(COMPILE_OPTIONS_DEFAULT

View File

@ -18,7 +18,7 @@
%bcond_with cxx_api %bcond_with cxx_api
Name: ZLMediaKit Name: ZLMediaKit
Version: 5.0.0 Version: 8.0.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: A lightweight, high performance and stable stream server and client framework based on C++11. Summary: A lightweight, high performance and stable stream server and client framework based on C++11.