mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
修复编译 rpm 时获取调试信息失败问题 (#3151)
Release 8.0 之后, 编译 rpm 会出现获取调试信息失败问题, 导致 rpm 打包失败 虽然说可以禁用调试包生成来规避问题, 但个人认为在编译 DEBUG 版本时生成调试信息包还是有必要的
This commit is contained in:
parent
a17b950b21
commit
8f4e76406c
@ -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
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user