aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-08-22 11:23:30 +0200
committerOliver Smith <osmith@sysmocom.de>2022-08-22 11:23:30 +0200
commit9ea4e4a1d6a965989dd048986728e60924f49389 (patch)
tree083d146fd0ce5b7295f3ea4e3404d183fa872a99
parent98774e224e130394251f105013d7914e2f49aa9e (diff)
rpm spec: use --disable-static
Follow what we are doing in other Osmocom rpm packaging by not building and packaging static libraries. Fix for rpmlint errors when building for OpenSUSE: libosmo-gtlv-devel.x86_64: E: static-library-without-debuginfo /usr/lib64/libosmo-gtlv.a libosmo-pfcp-devel.x86_64: E: static-library-without-debuginfo /usr/lib64/libosmo-pfcp.a libosmo-gtlv-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libosmo-gtlv.a libosmo-pfcp-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libosmo-pfcp.a (If we wanted to build with static libraries, we would need to use -ffat-lto-objects to get rid of the second error.) Related: https://github.com/rpm-software-management/rpmlint/issues/458 Change-Id: I49dd454afd8bd3473bcadbc8cd8724574011f886
-rw-r--r--contrib/libosmo-pfcp.spec.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/libosmo-pfcp.spec.in b/contrib/libosmo-pfcp.spec.in
index 4ef2607..e47d52c 100644
--- a/contrib/libosmo-pfcp.spec.in
+++ b/contrib/libosmo-pfcp.spec.in
@@ -72,6 +72,7 @@ contains the files for compiling a program using this library.
echo "%{version}" >.tarball-version
autoreconf -fi
%configure \
+ --disable-static \
--includedir="%_includedir/%name"
make %{?_smp_mflags}
@@ -95,7 +96,6 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%dir %{_includedir}/%{name}/osmocom
%{_includedir}/%{name}/osmocom/gtlv
%{_libdir}/libosmo-gtlv.so
-%{_libdir}/libosmo-gtlv.a
%{_libdir}/pkgconfig/libosmo-gtlv.pc
%files -n libosmo-pfcp0
@@ -106,7 +106,6 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%dir %{_includedir}/%{name}/osmocom
%{_includedir}/%{name}/osmocom/pfcp
%{_libdir}/libosmo-pfcp.so
-%{_libdir}/libosmo-pfcp.a
%{_libdir}/pkgconfig/libosmo-pfcp.pc
%changelog