Mail Archives: djgpp-workers/2003/01/24/15:55:26
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
- Raw text -