OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Matthias Kurz
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 19-Sep-2005 18:12:07
Branch: HEAD Handle: 2005091917120700
Modified files:
openpkg-src/gcc gcc.spec
Log:
Remove "-z text" from the gcc default linker arguments under Solaris
when "%{with_binutils}" == "no". This behaviour is the default in
the Solaris linker.
The "-z text" makes relocations in shared objects a fatal linker error.
When static libraries are build, there is often (almost always) position
dependent code generated.
Whether the linking of shared objects against static libraries always
makes sense is another question...
Summary:
Revision Changes Path
1.113 +10 -1 openpkg-src/gcc/gcc.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gcc/gcc.spec
============================================================================
$ cvs diff -u -r1.112 -r1.113 gcc.spec
--- openpkg-src/gcc/gcc.spec 7 Sep 2005 18:17:30 -0000 1.112
+++ openpkg-src/gcc/gcc.spec 19 Sep 2005 16:12:07 -0000 1.113
@@ -37,7 +37,7 @@
Group: Compiler
License: GPL
Version: %{V_full}
-Release: 20050907
+Release: 20050919
# package options
%option with_cxx yes
@@ -271,6 +271,15 @@
$RPM_BUILD_ROOT%{l_prefix}/share/gcc
%endif
+%if "%{with_binutils}" == "no"
+ # allow relocations in shared objects under Solaris
+ case "%{l_platform -t}" in
+ *-sunos* ) %{l_shtool} subst \
+ -e 's/-z text}/}/g' \
+
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}/${triple}/[0-9]*/specs;;
+ esac
+%endif
+
# strip installation tree
rm -rf $RPM_BUILD_ROOT%{l_prefix}/${triple}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]