[Bugfix] static link plg_grpc_proto

This commit is contained in:
liyancheng 2022-08-27 10:15:54 +08:00
parent c706a44f05
commit 272b3f5351
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e713c1b..ec07e26 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,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}

View File

@ -1,11 +1,13 @@
Name: pin-gcc-client Name: pin-gcc-client
Version: 0.1.0 Version: 0.1.0
Release: 1 Release: 2
Summary: A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC. Summary: A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC.
License: Apache 2.0 License: Apache 2.0
URL: https://gitee.com/src-openeuler/pin-gcc-client URL: https://gitee.com/src-openeuler/pin-gcc-client
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Patch0: 0001-static-link-plg_grpc_proto.patch
BuildRequires: gcc gcc-c++ gcc-plugin-devel cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel BuildRequires: gcc gcc-c++ gcc-plugin-devel cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
Requires: gcc grpc protobuf Requires: gcc grpc protobuf
@ -17,6 +19,7 @@ A Pin (Plug-IN framework) client is implemented based on GCC plugin and can exec
%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}
@ -34,6 +37,12 @@ cd _build
%attr(0755,root,root) %{_libdir}/libpin_gcc_client.so %attr(0755,root,root) %{_libdir}/libpin_gcc_client.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