fix build problem in openEuler:23.09:Epol

(cherry picked from commit ff65f5da400bd58e2dcc9e6a50fb95676f823687)
This commit is contained in:
Wangjunqi123 2023-08-22 14:25:24 +08:00 committed by openeuler-sync-bot
parent 2ca3a5168a
commit 2d03e97fa7

View File

@ -1,6 +1,6 @@
Name: xsd Name: xsd
Version: 4.1.0 Version: 4.1.0
Release: 0.2.a11.kb3 Release: 1
Summary: W3C XML schema to C++ data binding compiler Summary: W3C XML schema to C++ data binding compiler
# Exceptions permit otherwise GPLv2 incompatible combination with ASL 2.0 # Exceptions permit otherwise GPLv2 incompatible combination with ASL 2.0
License: GPLv2 with exceptions and ASL 2.0 License: GPLv2 with exceptions and ASL 2.0
@ -51,7 +51,7 @@ rm -rf libcutl
%if 0%{?rhel} < 7 %if 0%{?rhel} < 7
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
%endif %endif
%make_build verbose=1 CXX=g++ CC=gcc CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,now" LDFLAGS="%{__global_ldflags} -fPIC -pie -Wl,-z,now" BOOST_LINK_SYSTEM=y EXTERNAL_LIBCUTL=y %make_build verbose=1 CXX=g++ CC="CC -std=gnu89" CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS -fPIC -pie -Wl,-z,now" LDFLAGS="%{__global_ldflags} -fPIC -pie -Wl,-z,now" BOOST_LINK_SYSTEM=y EXTERNAL_LIBCUTL=y
%install %install
rm -rf apidocdir rm -rf apidocdir
@ -114,6 +114,9 @@ make -j 1 test EXTERNAL_LIBCUTL=y BOOST_LINK_SYSTEM=y
%doc apidocdir/* %doc apidocdir/*
%changelog %changelog
* Tue Aug 22 2023 wangjunqi <wangjunqi@kylinos.cn> - 4.1.0-1
- fix build problem in openEuler:23.09:Epol
* Wed May 12 2021 kpkg <kpkg@kylinos.com.cn> - 4.1.0-0.2.a11.kb3 * Wed May 12 2021 kpkg <kpkg@kylinos.com.cn> - 4.1.0-0.2.a11.kb3
- rebuild for KY3.4-4 - rebuild for KY3.4-4