From: Reid K. <rn...@go...> - 2011-09-29 20:39:17
|
I'm on Ubuntu 10.04, and I want to link libelf, libdwarf, and libelftc into a shared library I'm building for symbol lookup. I tried editing mk/os.Linux to set MKPIC to "yes", but things seem to be going very wrong. Each .c file gets turned into a .so file, and I end up with a lib(elf|dwarf)_pic.a file. There happens to be a libdwarf.c file, so when the build system tries to link addr2line with -ldwarf, it picks up libdwarf.so instead of libdwarf.a, and the build fails. I think for my purposes I can just life libdwarf_pic.a, libelf_pic.a, and libelftc_pic.a, but it would be nice if the build didn't fail. Reid |