OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Jul-2003 21:41:53
Branch: HEAD Handle: 2003070220415300
Modified files:
openpkg-src/gcc gcc.spec
Log:
pay attention to the multilib support in gcc and move also libs in
subdir(s). This is mainly important under Solaris where 32 and 64 bit
versions of libs are build and installed
Summary:
Revision Changes Path
1.60 +7 -0 openpkg-src/gcc/gcc.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gcc/gcc.spec
============================================================================
$ cvs diff -u -r1.59 -r1.60 gcc.spec
--- openpkg-src/gcc/gcc.spec 2 Jul 2003 08:14:42 -0000 1.59
+++ openpkg-src/gcc/gcc.spec 2 Jul 2003 19:41:53 -0000 1.60
@@ -196,6 +196,13 @@
# cleanup installation tree
mv $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.a \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}-lib/${triple}/%{V_full}/
+ for multilib in `$RPM_BUILD_ROOT%{l_prefix}/bin/gcc --print-multi-lib`; do
+ subdir=`echo "$multilib" | sed -e 's/;.*$//'`
+ [ ".$subdir" = .. ] && continue
+ mv $RPM_BUILD_ROOT%{l_prefix}/lib/$subdir/lib*.a \
+
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}-lib/${triple}/%{V_full}/$subdir/
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/$subdir
+ done
mv $RPM_BUILD_ROOT%{l_prefix}/${triple}/include/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}-lib/${triple}/%{V_full}/include/
\
>/dev/null 2>&1 || true
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]