fix missing -g for clang build

(cherry picked from commit 27ec6af49874ca77a6c8dfd14c631f70d9f51513)
This commit is contained in:
luofeng14 2024-04-08 10:11:04 +08:00 committed by openeuler-sync-bot
parent 26046b806c
commit 35c9655618

View File

@ -1,6 +1,6 @@
Name: c-ares Name: c-ares
Version: 1.19.1 Version: 1.19.1
Release: 2 Release: 3
Summary: A C library for asynchronous DNS requests Summary: A C library for asynchronous DNS requests
License: MIT License: MIT
@ -32,7 +32,10 @@ shared objects are contained in %{name}-devel package.
%build %build
autoreconf -if autoreconf -if
%configure --enable-shared --disable-static --disable-dependency-tracking %if "%{?toolchain}" == "clang"
%global conf_opts --enable-debug
%endif
%configure --enable-shared --disable-static --disable-dependency-tracking %{?conf_opts}
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -61,6 +64,12 @@ cd ../
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Mon Apr 1 2024 liyunfei<liyunfei33@huawei.com> - 1.19.1-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix missing -g for clang build
* Tue Feb 27 2024 liweigang <izmirvii@gmail.com> - 1.19.1-2 * Tue Feb 27 2024 liweigang <izmirvii@gmail.com> - 1.19.1-2
- Type: CVE - Type: CVE
- CVE: CVE-2024-25629 - CVE: CVE-2024-25629