From f6ca25d539ca2952d69f1b73ef4548c6c648d8e7 Mon Sep 17 00:00:00 2001 From: gichan2-jang Date: Wed, 10 Jan 2024 15:25:22 +0900 Subject: [PATCH] Build static lib first. Bui;d static lib first to copy cmake files of shared lib. Change-Id: Ic8c280453f8f7f5f3a5ab3f62547a9d2ffa8c487 Signed-off-by: gichan2-jang --- packaging/protobuf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/protobuf.spec b/packaging/protobuf.spec index a2f6d77..3323e78 100644 --- a/packaging/protobuf.spec +++ b/packaging/protobuf.spec @@ -134,8 +134,8 @@ mkdir -p %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_bindir} install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim -make -C build_shared %{?_smp_mflags} install DESTDIR=%{buildroot} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p" make -C build_static %{?_smp_mflags} install DESTDIR=%{buildroot} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p" +make -C build_shared %{?_smp_mflags} install DESTDIR=%{buildroot} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p" cp ./build_shared/protoc* %{buildroot}%{_bindir}/ cp ./build_shared/*so* %{buildroot}%{_libdir}/ -- 2.7.4