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]

Re: Fix for "libgloss uses STARTUP directives consistently"


I'd like to revisit this old patch since it is still required to build
gcc correctly when you do separate builds and installs of binutils,
gcc, gdb, and newlib (I.E. NOT an integrated tree where libgloss
sources can be found).

> * checking for STARTUP in the installed *.ld would probably be OK.

I agree that we probably don't want to check all the linker files in
the libgloss source tree, but it does make sense to check all of the
installed ones, since these are just for the toolchain we are trying
to configure and build.  So I've modified the patch accordingly, and
attached it here for review and approval.

-Fred


2003-12-14  Fred Fish  <fnf@intrinsity.com>

	* configure.in (gcc_cv_mips_libgloss_startup): When checking the
	installed mips linker scripts, match all installed copies, not just
	"idt.ld", which might not even be installed.  For example,
	mipsisa32-elf newlib installs only idt32.ld, idt64.ld, and cfe.ld.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.759
diff -c -p -r1.759 configure.in
*** configure.in	11 Dec 2003 20:50:32 -0000	1.759
--- configure.in	14 Dec 2003 21:20:53 -0000
*************** case "$target" in
*** 2550,2556 ****
      else
        test_prefix=$exec_prefix
      fi
!     for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/idt.ld
      do
        if grep '^STARTUP' $f > /dev/null 2>&1; then
          gcc_cv_mips_libgloss_startup=yes
--- 2550,2556 ----
      else
        test_prefix=$exec_prefix
      fi
!     for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/*.ld
      do
        if grep '^STARTUP' $f > /dev/null 2>&1; then
          gcc_cv_mips_libgloss_startup=yes


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