The test/Checkit script uses only the CC environment variable. Shouldn't it also honour the CFLAGS and LDFLAGS environment variables ?( at least )
I am compiling Judy in 64bit mode ( using -m64 in CFLAGS and LDFLAGS ) and was bitten by this,
Compiling with Judy library: ../src/obj/.libs/libJudy.a
gcc -O -I../src SLcompare.c -DJUDYMETHOD -o SL_Judy ../src/obj/.libs/libJudy.a -lm
ld: warning: file ../src/obj/.libs/libJudy.a(JudySL.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to SL_Judy
collect2: ld returned 1 exit status
=== 0 Failed: gcc SLcompare.c -DJUDYMETHOD
Perhaps all compilations as part of the test should be performed by specifying targets in test/Makefile and the Checkit script should only contain the code to validate.
e-mail : Sreejith.Madhavan@deshaw.com
Log in to post a comment.