The 64-bit build (which runs before the 32-bit one) sets the
EXTRA_LDFLAGS env variable to include -R/usr/lib/sparcv9 or
-R/usr/lib/amd64. Since this is not reset when the 32-bit
build starts, we end up with 32-bit libs that include
/usr/lib/sparcv9 in their runpaths. For some reason it
doesn't happen on amd64, but I didn't try to find out why.
Setting EXTRA_LDFLAGS to nothing before the 1st 32-bit
component build fixes this bug.
Laca
Index: SUNWgnome-component.spec
===================================================================
--- SUNWgnome-component.spec (revision 15010)
+++ SUNWgnome-component.spec (working copy)
@@ -119,6 +119,8 @@
%bonobo_64.build -d %name-%version/%_arch64
%endif
+export EXTRA_LDFLAGS=
+
export
PKG_CONFIG_PATH=../ORBit2-%{orbit.version}:../libIDL-%{idl.version}:../libbonobo-%{bonobo.version}:/usr/lib/pkgconfig
%if %option_with_gnu_iconv
export EXTRA_LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib"
@@ -246,6 +248,9 @@
%endif
%changelog
+* Thu Aug 21 2008 - laca at sun.com
+- reset EXTRA_LDFLAGS before starting the 32-bit build to avoid adding
+ the 64-bit runpath to the 32-bit binaries, fixes 6738781
* Wed Jun 18 2008 - damien.carbery at sun.com
- Add Build/Requires SUNWdbus/-devel as required by libbonobo. Add
SUNWdbus-bindings/-devel too as /usr/lib/bonobo-activation-server requires