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]

[patch] Fix configure error for mips-sde-elf toolchain


This patch adds the -mexplicit-relocs option to the configuration options for libgcc for mips-sde-elf. Without this option, the configuration fails with:

configure:2415: /scratch/clm/nup/build/./gcc/xgcc -B/scratch/clm/nup/build/./gcc/ -B/usr/local/mips-sde-elf/bin/ -B/usr/local/mips-sde-elf/lib/ -isystem /usr/local/mips-sde-elf/include -isystem /usr/local/mips-sde-elf/sys-include -o conftest -g -O2 -Os -minterlink-mips16 -mcode-xonly -mno-gpopt conftest.c >&5
conftest.c:1: error: '-mno-gpopt' needs '-mexplicit-relocs'
configure:2418: $? = 1


Does this look okay to install?
Thanks,
Catherine

2008-11-14 Catherine Moore <clm@codesourcery.com>

	* mt-sde (CFLAGS_FOR_TARGET): Add -mexplicit-relocs.
	(CXXFLAGS_FOR_TARGET): Likewise.

Index: mt-sde
===================================================================
--- mt-sde      (revision 141864)
+++ mt-sde      (working copy)
@@ -6,5 +6,5 @@
 # has two purposes: it allows libraries to be used in situations where
 # $gp != our _gp, and it allows them to be built with -G8 while
 # retaining link compability with -G0 and -G4.
-CFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
-CXXFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
+CFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt -mexplicit-relocs
+CXXFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt -mexplicit-relocs


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