support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit faa587dbb0cb173f7853bf18767e1febbe679e1a)
This commit is contained in:
luofeng14 2024-02-25 10:25:09 +00:00 committed by openeuler-sync-bot
parent 27f486af35
commit 18dca24ad1

View File

@ -1,6 +1,6 @@
Name: libwebp
Version: 1.3.2
Release: 2
Release: 3
URL: https://www.webmproject.org
Summary: Library and tools for the WebP graphics format
License: BSD
@ -67,7 +67,7 @@ swig -ignoremissing -I../src -java \
-outdir java/com/google/webp \
-o libwebp_java_wrap.c libwebp.swig
gcc %{__global_ldflags} %{optflags} -shared \
%{__cc} %{__global_ldflags} %{optflags} -shared \
-I/usr/lib/jvm/java/include \
-I/usr/lib/jvm/java/include/linux \
-I../src \
@ -113,6 +113,12 @@ cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
%{_mandir}/man*/*
%changelog
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> - 1.3.2-3
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
* Tue Sep 26 2023 liweigang <liweiganga@uniontech.com> - 1.3.2-2
- backport CVE-2023-4863