#23 test/Checkit script does not honour $CFLGAS and $LDFLAGS

open
nobody
None
5
2009-01-16
2009-01-16
Anonymous
No

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
JudySLGet /var/tmp//ccmvWGJb.o
JudySLIns /var/tmp//ccmvWGJb.o
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.

- Sreejith
e-mail : Sreejith.Madhavan@deshaw.com

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks