BZ #27: Building with CFLAGS set doesn't work

Status fields:

creation_ts:2006-07-02 14:21
component:jit
version:default branch
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:mark@klomp.org
On builder.classpath.org we build all programs and libraries with CFLAGS set:
make CFLAGS=-g CPPFLAGS=-g CXXFLAGS=-g GCJFLAGS=-g $target

This doesn't work for cacao in the jit code:

 gcc -DHAVE_CONFIG_H -I. -I../../../../../cacao/src/vm/jit/i386 -I../../../..
-I../../../../../cacao/src -I../../../.. -I../../../../src -g -g -MT codegen.lo -MD
-MP -MF .deps/codegen.Tpo -c ../../../../../cacao/src/vm/jit/i386/codegen.c  -fPIC
-DPIC -o .libs/codegen.o
../../../../../cacao/src/vm/jit/i386/codegen.c: In function 'codegen':
../../../../../cacao/src/vm/jit/i386/codegen.c:3325: error: 'PATCHER_getfield'
undeclared (first use in this function)
../../../../../cacao/src/vm/jit/i386/codegen.c:3325: error: (Each undeclared
identifier is reported only once
../../../../../cacao/src/vm/jit/i386/codegen.c:3325: error: for each function it
appears in.)
../../../../../cacao/src/vm/jit/i386/codegen.c:3379: error: 'PATCHER_putfield'
undeclared (first use in this function)
../../../../../cacao/src/vm/jit/i386/codegen.c:3422: error: 'PATCHER_putfieldconst'
undeclared (first use in this function)
../../../../../cacao/src/vm/jit/i386/codegen.c:4705: error:
'PATCHER_checkcast_class' undeclared (first use in this function)
../../../../../cacao/src/vm/jit/i386/codegen.c:4936: error:
'PATCHER_instanceof_class' undeclared (first use in this function)
make[7]: *** [codegen.lo] Error 1

Comment #1 by twisti@complang.tuwien.ac.at on 2006-07-08 20:29:04

Fix commited.