Use __cxx marco to support Clang
(cherry picked from commit cfeb02849ce319f3fca14699798ac05278484077)
This commit is contained in:
parent
34867cd1ea
commit
59e5de5e92
15
tinyxml.spec
15
tinyxml.spec
@ -1,6 +1,6 @@
|
||||
Name: tinyxml
|
||||
Version: 2.6.2
|
||||
Release: 24
|
||||
Release: 25
|
||||
Summary: C++ XML parser
|
||||
License: zlib
|
||||
URL: http://www.grinninglizard.com/tinyxml/
|
||||
@ -30,11 +30,11 @@ It provides header files and libraries for tinyxml.
|
||||
touch tinyxml.h
|
||||
|
||||
%build
|
||||
g++ $RPM_OPT_FLAGS -fPIC -o tinyxml.cpp.o -c tinyxml.cpp
|
||||
g++ $RPM_OPT_FLAGS -fPIC -o tinystr.cpp.o -c tinystr.cpp
|
||||
g++ $RPM_OPT_FLAGS -fPIC -o tinyxmlerror.cpp.o -c tinyxmlerror.cpp
|
||||
g++ $RPM_OPT_FLAGS -fPIC -o tinyxmlparser.cpp.o -c tinyxmlparser.cpp
|
||||
g++ $RPM_LD_FLAGS -shared -o libtinyxml.so.0.%{version} -Wl,-soname,libtinyxml.so.0 *.cpp.o
|
||||
%{__cxx} $RPM_OPT_FLAGS -fPIC -o tinyxml.cpp.o -c tinyxml.cpp
|
||||
%{__cxx} $RPM_OPT_FLAGS -fPIC -o tinystr.cpp.o -c tinystr.cpp
|
||||
%{__cxx} $RPM_OPT_FLAGS -fPIC -o tinyxmlerror.cpp.o -c tinyxmlerror.cpp
|
||||
%{__cxx} $RPM_OPT_FLAGS -fPIC -o tinyxmlparser.cpp.o -c tinyxmlparser.cpp
|
||||
%{__cxx} $RPM_LD_FLAGS -shared -o libtinyxml.so.0.%{version} -Wl,-soname,libtinyxml.so.0 *.cpp.o
|
||||
|
||||
|
||||
%install
|
||||
@ -66,6 +66,9 @@ mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Wed Jan 08 2025 Suyun <ziyu.oerv@isrc.iscas.ac.cn> - 2.6.2-25
|
||||
- Use __cxx marco to support Clang
|
||||
|
||||
* Tue Dec 24 2024 Jianmin <jianmin@iscas.ac.cn> - 2.6.2-24
|
||||
- fix CVE-2023-34194
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user