fix build error for loongarch64
This commit is contained in:
parent
2a57ecd262
commit
ddfde66cff
7
gd.spec
7
gd.spec
@ -1,6 +1,6 @@
|
||||
Name: gd
|
||||
Version: 2.3.3
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A graphics library for quick creation of PNG or JPEG images
|
||||
License: MIT
|
||||
URL: http://libgd.github.io/
|
||||
@ -65,7 +65,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\
|
||||
export CFLAGS="$CFLAGS -msse -mfpmath=sse"
|
||||
%endif
|
||||
|
||||
%ifarch aarch64 ppc64 ppc64le s390 s390x
|
||||
%ifarch aarch64 ppc64 ppc64le s390 s390x loongarch64
|
||||
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680
|
||||
export CFLAGS="$CFLAGS -ffp-contract=off"
|
||||
%endif
|
||||
@ -108,6 +108,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc
|
||||
%exclude %{_libdir}/libgd.a
|
||||
|
||||
%changelog
|
||||
* Mon Feb 13 2023 zhangpan <zhangpan@h-partners.com> - 2.3.3-3
|
||||
- fix build error for loongarch64
|
||||
|
||||
* Sun Nov 13 2022 Funda Wang <fundawang@yeah.net> - 2.3.3-2
|
||||
- Add patch from fedora to fix build with PHP
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user