This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PR 14992


Here's the el hacko patch for 14992 for the 3.4 branch.

Jakub, Alan, et al -- please find a better way for the mainline!

Applied only on the branch.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2004-04-18  Mark Mitchell  <mark@codesourcery.com>

	PR bootstrap/14992
	* gcc.c (init_gcc_specs): Only honor HAVE_LD_AS_NEEDED on
	GNU/Linux.

Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.403.4.6
diff -c -5 -p -r1.403.4.6 gcc.c
*** gcc.c	1 Apr 2004 16:47:53 -0000	1.403.4.6
--- gcc.c	18 Apr 2004 22:42:21 -0000
*************** init_gcc_specs (struct obstack *obstack,
*** 1529,1539 ****
  {
    char *buf;
  
    buf = concat ("%{static|static-libgcc:", static_name, " ", eh_name,
  		"}%{!static:%{!static-libgcc:",
! #ifdef HAVE_LD_AS_NEEDED
  		"%{!shared-libgcc:", static_name,
  		" --as-needed ", shared_name, " --no-as-needed}"
  		"%{shared-libgcc:", shared_name, "%{!shared: ", static_name,
  		"}",
  #else
--- 1529,1539 ----
  {
    char *buf;
  
    buf = concat ("%{static|static-libgcc:", static_name, " ", eh_name,
  		"}%{!static:%{!static-libgcc:",
! #if defined(__linux__) && defined(HAVE_LD_AS_NEEDED)
  		"%{!shared-libgcc:", static_name,
  		" --as-needed ", shared_name, " --no-as-needed}"
  		"%{shared-libgcc:", shared_name, "%{!shared: ", static_name,
  		"}",
  #else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]