dpdk.spec: Remove the combined build option
The desired end effect of build is to have a combined library, and it will not be going away. The upstream combined library is considered bloatware which creates issues when library versions start moving, so force the issue by using linker script instead. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Neil Horman <nhorman@redhat.com> Acked-by: Panu Matilainen <pmatilai@redhat.com>
This commit is contained in:
parent
f961f12771
commit
7c47af9e00
12
dpdk.spec
12
dpdk.spec
@ -1,5 +1,3 @@
|
|||||||
# Add option to enable combined library (--with combined)
|
|
||||||
%bcond_with combined
|
|
||||||
# Add option to build as static libraries (--without shared)
|
# Add option to build as static libraries (--without shared)
|
||||||
%bcond_without shared
|
%bcond_without shared
|
||||||
# Add option to build without tools
|
# Add option to build without tools
|
||||||
@ -163,10 +161,11 @@ EOF
|
|||||||
# Fixup irregular modes in headers
|
# Fixup irregular modes in headers
|
||||||
find %{buildroot}%{_includedir}/%{name}-%{version} -type f | xargs chmod 0644
|
find %{buildroot}%{_includedir}/%{name}-%{version} -type f | xargs chmod 0644
|
||||||
|
|
||||||
# Upstream has an option to build a combined library but it'll clash
|
# Upstream has an option to build a combined library but it's bloatware which
|
||||||
# with symbol/library versioning once it lands. Use a linker script to
|
# wont work at all when library versions start moving, replace it with a
|
||||||
# avoid the issue.
|
# linker script which avoids these issues. Linking against the script during
|
||||||
%if %{with combined}
|
# build resolves into links to the actual used libraries which is just fine
|
||||||
|
# for us, so this combined library is a build-time only construct now.
|
||||||
|
|
||||||
%if %{with shared}
|
%if %{with shared}
|
||||||
libext=so
|
libext=so
|
||||||
@ -181,7 +180,6 @@ find %{buildroot}/%{_libdir}/%{name}-%{version}/ -name "*.${libext}" |\
|
|||||||
sed -e "s:^%{buildroot}/: :g" >> ${comblib}
|
sed -e "s:^%{buildroot}/: :g" >> ${comblib}
|
||||||
echo ")" >> ${comblib}
|
echo ")" >> ${comblib}
|
||||||
install -m 644 ${comblib} %{buildroot}/%{_libdir}/%{name}-%{version}/${comblib}
|
install -m 644 ${comblib} %{buildroot}/%{_libdir}/%{name}-%{version}/${comblib}
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
# BSD
|
# BSD
|
||||||
|
Loading…
Reference in New Issue
Block a user