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

This commit is contained in:
snysmtx 2023-12-22 16:04:21 +08:00
parent a17b950b21
commit b1cff54224
2 changed files with 7 additions and 1 deletions

View File

@ -193,6 +193,12 @@ if(UNIX)
"-Wall;-Wextra"
"-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable"
"-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)
if (MSVC)
set(COMPILE_OPTIONS_DEFAULT

View File

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