!3 [Bugfix] static link plg_grpc_proto
From: @li-yancheng Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
e5895fa9fe
14
0001-static-link-plg_grpc_proto.patch
Normal file
14
0001-static-link-plg_grpc_proto.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index e713c1b..ec07e26 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -28,7 +28,7 @@ add_custom_command(
|
||||||
|
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
|
||||||
|
# plg_grpc_proto
|
||||||
|
-add_library(plg_grpc_proto
|
||||||
|
+add_library(plg_grpc_proto STATIC
|
||||||
|
${plg_grpc_srcs}
|
||||||
|
${plg_grpc_hdrs}
|
||||||
|
${plg_proto_srcs}
|
||||||
|
|
||||||
@ -1,10 +1,11 @@
|
|||||||
Name: pin-server
|
Name: pin-server
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: https://gitee.com/openeuler/pin-server
|
URL: https://gitee.com/openeuler/pin-server
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch0: 0001-static-link-plg_grpc_proto.patch
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
BuildRequires: gcc gcc-c++ cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
||||||
Requires: grpc protobuf
|
Requires: grpc protobuf
|
||||||
@ -25,6 +26,7 @@ A demo for pin-server
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
mkdir -p _build
|
mkdir -p _build
|
||||||
cd _build
|
cd _build
|
||||||
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||||
@ -46,6 +48,12 @@ cd _build
|
|||||||
%attr(0755,root,root) %{_libdir}/libuser.so
|
%attr(0755,root,root) %{_libdir}/libuser.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 27 2022 liyancheng <412998149@qq.com> - 0.1.0-2
|
||||||
|
- Type:Bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Static link plg_grpc_proto
|
||||||
|
|
||||||
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
||||||
- Type:Init
|
- Type:Init
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user