Build static lib first. sandbox/gichan/25.0 tizen
authorgichan2-jang <gichan2.jang@samsung.com>
Wed, 10 Jan 2024 06:25:22 +0000 (15:25 +0900)
committergichan2-jang <gichan2.jang@samsung.com>
Wed, 10 Jan 2024 06:25:22 +0000 (15:25 +0900)
Bui;d static lib first to copy cmake files of shared lib.

Change-Id: Ic8c280453f8f7f5f3a5ab3f62547a9d2ffa8c487
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
packaging/protobuf.spec

index a2f6d77..3323e78 100644 (file)
@@ -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}/