remove rpath by cmake

Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit 69a7631ac32b008f7c315fb075651897e90edf65)
This commit is contained in:
haozi007 2022-06-02 10:18:45 +01:00 committed by openeuler-sync-bot
parent 4892e247d2
commit b482ed0916

View File

@ -1,5 +1,5 @@
%global _version 2.0.7
%global _release 1
%global _release 2
Name: clibcni
Version: %{_version}
Release: %{_release}
@ -45,13 +45,9 @@ the %{name}-libs package contains libraries for running %{name} applications.
%build
mkdir -p build
cd build
%cmake -DDEBUG=ON -DENABLE_UT=ON -DLIB_INSTALL_DIR=%{_libdir} ../
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} ../
%make_build
pushd tests
ctest -V
popd
%install
rm -rf %{buildroot}
cd build
@ -91,6 +87,12 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Thu Jun 2 2022 haozi007 <liuhao27@huawei.com> - 2.0.7-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove rpath by cmake
* Thu Feb 24 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-1
- Type: enhancement
- ID: NA