Merge pull request #7811 from zhngaj/remove-la
openmpi.spec: Remove libtool archive files in packaging
Этот коммит содержится в:
Коммит
4e59d97ac7
16
contrib/dist/linux/openmpi.spec
поставляемый
16
contrib/dist/linux/openmpi.spec
поставляемый
@ -150,6 +150,10 @@
|
|||||||
%global _binary_filedigest_algorithm 1
|
%global _binary_filedigest_algorithm 1
|
||||||
%global _source_filedigest_algorithm 1
|
%global _source_filedigest_algorithm 1
|
||||||
|
|
||||||
|
# Define this to 1 if you want to keep libtool achive files
|
||||||
|
# Default is 0 (remove *.la files)
|
||||||
|
# type: bool (0/1)
|
||||||
|
%{!?install_libtool_archive: %define install_libtool_archive 0}
|
||||||
#############################################################################
|
#############################################################################
|
||||||
#
|
#
|
||||||
# Configuration Logic
|
# Configuration Logic
|
||||||
@ -478,6 +482,18 @@ export CFLAGS CXXFLAGS FCFLAGS
|
|||||||
# We don't need that in an RPM.
|
# We don't need that in an RPM.
|
||||||
find $RPM_BUILD_ROOT -name config.log -exec rm -f {} \;
|
find $RPM_BUILD_ROOT -name config.log -exec rm -f {} \;
|
||||||
|
|
||||||
|
%if !%{install_libtool_archive}
|
||||||
|
# Libtool archive files (.la files) create an unnecessary dependency
|
||||||
|
# between linked applications and the development versions of packages
|
||||||
|
# upon which Open MPI depends. For example, when building an application
|
||||||
|
# which uses Libtool, Open MPI would create a dependency not just on
|
||||||
|
# the HWLOC libs package, but the HWLOC devel package
|
||||||
|
# (to get the .so.1 -> .so symlink). Best practice in package builders
|
||||||
|
# appears to be to skip shipping .la files because of this issue.
|
||||||
|
find $RPM_BUILD_ROOT/%{_libdir} -name \*.la -exec rm -f {} \;
|
||||||
|
%endif
|
||||||
|
# End of libotool_archive if
|
||||||
|
|
||||||
# First, the [optional] modulefile
|
# First, the [optional] modulefile
|
||||||
|
|
||||||
%if %{install_modulefile}
|
%if %{install_modulefile}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user