!84 Support build with clang
From: @luofeng14 Reviewed-by: @volcanodragon Signed-off-by: @swf504
This commit is contained in:
commit
f0690e5a74
11
etmem.spec
11
etmem.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: etmem
|
Name: etmem
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: etmem
|
Summary: etmem
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
URL: https://gitee.com/openeuler/etmem
|
URL: https://gitee.com/openeuler/etmem
|
||||||
@ -31,6 +31,9 @@ etmem module
|
|||||||
%build
|
%build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
|
%if "%{?toolchain}" == "clang"
|
||||||
|
CFLAGS="${CFLAGS:-%{?build_cflags}} -Wno-typedef-redefinition"; export CFLAGS;
|
||||||
|
%endif
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -67,6 +70,12 @@ install -m 0644 userswap/include/uswap_api.h $RPM_BUILD_ROOT%{_includedir}
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> - 1.1-7
|
||||||
|
- Type: enhencement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:support for building with clang
|
||||||
|
|
||||||
* Thu Aug 24 2023 volcanodragon <linfeilong@huawei.com> - 1.1-6
|
* Thu Aug 24 2023 volcanodragon <linfeilong@huawei.com> - 1.1-6
|
||||||
- fix project stop cmd timeout problem
|
- fix project stop cmd timeout problem
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user