Date: Fri, 24 Jan 2003 19:07:57 +0000 From: "Richard Dawe" Sender: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp-workers AT delorie DOT com X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 Subject: Cygnus test suite and the tidied-up start-up code [PATCH] Message-Id: Reply-To: djgpp-workers AT delorie DOT com Hello. Since various things have been moved around in the start-up code, the Cygnus test suite no longer links, because it cannot resolve all the symbols. 2.04 libc is not compatible with 2.03 crt0. Below is a patch to the Makefile for the Cygnus test suite, to force it to use the crt0, libc, etc. from the sources. OK to commit? Bye, Rich =] Index: tests/cygnus/makefile =================================================================== RCS file: /cvs/djgpp/djgpp/tests/cygnus/makefile,v retrieving revision 1.4 diff -p -u -3 -r1.4 makefile --- tests/cygnus/makefile 29 Jul 1999 10:20:08 -0000 1.4 +++ tests/cygnus/makefile 24 Jan 2003 19:04:11 -0000 @@ -25,13 +25,17 @@ HERE := $(shell pwd) TOP = $(HERE)/.. CC = gcc +CRT0 = $(TOP)/../lib/crt0.o +LIBGCCA := $(shell $(CC) -print-file-name=libgcc.a) + # FIXME: this should probably use misc.exe RM = rm -f DEFS = -D_USE_LIBM_MATH_H -D_HAVE_STDC CPPFLAGS = -nostdinc -I$(HERE) -I$(TOP)/../include CFLAGS = $(DEFS) -O2 -g -LIBS = -lm +LIBS = $(CRT0) -lm -lc $(LIBGCCA) +LDFLAGS = -nostdlib -L$(TOP)/../lib OFILES = test.o string.o convert.o conv_vec.o iconv_vec.o test_is.o \ dvec.o sprint_vec.o sprint_ivec.o math.o math2.o test_ieee.o