Hi,
as pointed out at least twice by the Sun Studio developers, one should never
ever use -L/usr/lib -R/usr/lib , unless there is some extremely specific reason
to do so.
This is also stressed in the Studio 12 U1 User's guide.
I modified the includes with the below patch (out of pure laziness I kept the
boost patches intact - there are a number of occurences in them as well) and
built KDEgdm-integration without a glitch. The KDE session came up sucessfully
and I did not observe any extra crashes.
Could the S10 people try it too and confirm please (you'd have to modify
foss-common64.inc as well)?
Is there something that would prevent the global change? If it's something
concerning just a package or two, IMO we should put it in their specs only.
regards
hajma
diff -r d432e0c405d0 specs/include/flags32.inc
--- a/specs/include/flags32.inc Thu Mar 11 18:13:55 2010 +0000
+++ b/specs/include/flags32.inc Sun Mar 14 00:13:50 2010 +0100
@@ -86,7 +86,7 @@
# Libraries
%define _LDFLAGS_FOSS_LIB -L%{_foss_lib} -R%{_foss_lib}
-%define _LDFLAGS_USR_LIB -L/usr/lib -R/usr/lib
+%define _LDFLAGS_USR_LIB
%ifarch sparc
%define _CXX_OPTIM_ARCH -KPIC %{_BASE_OPTIM} -xregs=no%appl -xpagesize=default
-xmemalign=8i -Qoption iropt -xwrap_int -xcode=pic32 -xrestrict=%all
-xthreadvar=%all
diff -r d432e0c405d0 specs/include/foss-common32.inc
--- a/specs/include/foss-common32.inc Thu Mar 11 18:13:55 2010 +0000
+++ b/specs/include/foss-common32.inc Sun Mar 14 00:13:50 2010 +0100
@@ -118,7 +118,7 @@
# Libraries
%define _LDFLAGS_FOSS_LIB -L%{_foss_lib} -R%{_foss_lib}
-%define _LDFLAGS_USR_LIB -L/usr/lib -R/usr/lib
+%define _LDFLAGS_USR_LIB
%ifarch sparc
%define _CXX_OPTIM_ARCH %{_KPIC} %{_BASE_OPTIM} -xregs=no%appl
-xpagesize=default -xmemalign=8i -Qoption iropt -xwrap_int -xcode=pic32
-xrestrict=%all -xthreadvar=%all
diff -r d432e0c405d0 specs/include/foss-flags.inc
--- a/specs/include/foss-flags.inc Thu Mar 11 18:13:55 2010 +0000
+++ b/specs/include/foss-flags.inc Sun Mar 14 00:13:50 2010 +0100
@@ -89,8 +89,8 @@
#
#
%define _LIBS_COMMON -lc -lm -ldl -lpthread -lposix4 -lrt -mt
-%define _LDOPTIM_COMMON -z combreloc -z redlocsym -z nodefaultlib -z ignore -z
now -z rescan -z absexec -xldscope=symbolic -xlibmil %{_LD_DEBUG_OR_STRIP}
-%define _LDOPTIM_CCAS -z combreloc -z redlocsym -z nodefaultlib -z ignore -z
now -z rescan -z absexec -xldscope=symbolic %{_LD_DEBUG_OR_STRIP}
+%define _LDOPTIM_COMMON -z combreloc -z redlocsym -z ignore -z now -z rescan
-z absexec -xldscope=symbolic -xlibmil %{_LD_DEBUG_OR_STRIP}
+%define _LDOPTIM_CCAS -z combreloc -z redlocsym -z ignore -z now -z rescan
-z absexec -xldscope=symbolic %{_LD_DEBUG_OR_STRIP}
%define _C_LIBS_COMMON
%if %{?!_LDFLAGS_COMMON:1}
%define _LDFLAGS_COMMON %{_LDFLAGS_FOSS_LIB} %{_LDFLAGS_USR_LIB}
--
This message posted from opensolaris.org