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]

Another MIPS/Linux patch



I tried to build gcc 2.95.1 again on mipsel-linux with --enable-shared 
and got a message that crtbeginS.o couldn't be found.
crtbeginS.o/crtendS.o are referenced in the specs file, but not in
configure.  I'm appending a patch which also adds posix thread support 
for mips*-linux.

Andreas

Sat Aug 21 06:54:42 1999  Administrator  <admin@raq2.rhein-neckar.de>

        * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add 
        thread support.

--- configure.in.orig	Sat Aug 21 07:00:57 1999
+++ configure.in	Sat Aug 21 07:04:30 1999
@@ -2363,9 +2363,12 @@
                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
                        *)         tm_file="mips/elf.h mips/linux.h" ;;
                esac
-		extra_parts="crtbegin.o crtend.o"
+		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 		gnu_ld=yes
 		gas=yes
+ 		if test x$enable_threads = xyes; then
+ 			thread_file='posix'
+ 		fi
 		;;
 	mips*el-*-openbsd*)	# mips little endian
 		target_cpu_default="MASK_GAS|MASK_ABICALLS"

-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


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