C crunchgen, obj file locations and clang

Hi,

I'm (Trying) to use crunchgen with clang in freebsd 12.1

FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: i386-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin

crunchgen is trying to find object files in the wrong location, for example, if I add 'df' to crunchgen, it will fail

cc -nostdlib -Wl,-dc -r -o df.lo df_stub.o /usr/src/bin/df/df.o /usr/src/bin/df/vfslist.o /usr/src/bin/df/getmntopts.o
cc error: no such file or directory: '/usr/src/bin/df/vfslist.o'


and thats because vfslist.o is in this location
/usr/obj/usr/src/i386.i386/bin/df/vfslist.o

What is the correct way for crunchgen to find the objects in the right location ?

Thanks !
 
Back
Top