There are two issues here. The first:
liblldbHost.a(Editline.cpp.o):(.debug_addr+0x238): undefined reference to `el_get'
when linking InterpreterTests, is caused by -ledit coming after liblldbHost.a in the link line.
The second:
liblldbCore.a(IOHandler.cpp.o):(.debug_addr+0x2564): undefined reference to `del_panel'
because libpanel.a and liblldbCore.a are out of order in the link line.