while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
done
+ case $ac_prog in
+ *coverity_config*)
+ ac_prog=`$ECHO $ac_prog | cut -d ' ' -f1` ;;
+ esac
test -z "$LD" && LD="$ac_prog"
;;
"")
--- /dev/null
+diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
+index 814cc93..916d3f6 100644
+--- a/libltdl/config/ltmain.m4sh
++++ b/libltdl/config/ltmain.m4sh
+@@ -4274,6 +4274,11 @@ func_mode_link ()
+ arg=$func_stripname_result
+ ;;
+
++ -Wl,--as-needed|-Wl,--no-as-needed)
++ deplibs="$deplibs $arg"
++ continue
++ ;;
++
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+@@ -4625,6 +4630,15 @@ func_mode_link ()
+ lib=
+ found=no
+ case $deplib in
++ -Wl,--as-needed|-Wl,--no-as-needed)
++ if test "$linkmode,$pass" = "prog,link"; then
++ compile_deplibs="$deplib $compile_deplibs"
++ finalize_deplibs="$deplib $finalize_deplibs"
++ else
++ deplibs="$deplib $deplibs"
++ fi
++ continue
++ ;;
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+++ /dev/null
-<manifest>
- <request>
- <domain name="_"/>
- </request>
-</manifest>
Url: http://www.gnu.org/software/libtool/
Group: Development/Tools
Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.gz
-Source1001: packaging/libtool.manifest
Patch0: no-host-name.patch
Patch1: fix-AC_LANG_PROGRAM.patch
+Patch2: as-needed.patch
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1.9.2
%setup -n libtool-%{version} -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
-cp %{SOURCE1001} .
./bootstrap
%make_install
rm -rf %{buildroot}%{_infodir}
+mkdir -p %{buildroot}/usr/share/license
+cp COPYING %{buildroot}/usr/share/license/%{name}
+cp COPYING %{buildroot}/usr/share/license/%{name}-ltdl
+
%check
#make check VERBOSE=yes > make_check.log 2>&1 || (cat make_check.log && false)
%postun ltdl -p /sbin/ldconfig
%files
-%manifest libtool.manifest
%defattr(-,root,root)
%doc AUTHORS COPYING THANKS
%{_bindir}/libtool
%{_datadir}/aclocal/*.m4
%exclude %{_datadir}/libtool/libltdl
%{_datadir}/libtool
+/usr/share/license/%{name}
%files ltdl
-%manifest libtool.manifest
%defattr(-,root,root)
%doc libltdl/COPYING.LIB libltdl/README
%{_libdir}/libltdl.so.*
+/usr/share/license/%{name}-ltdl
%files ltdl-devel
-%manifest libtool.manifest
%defattr(-,root,root)
%{_datadir}/libtool/libltdl
%{_libdir}/libltdl.so
%{_includedir}/ltdl.h
%{_includedir}/libltdl
-
-
-