This is a side effect of the mutli-arch support on Ubuntu. Short answer, for now the workaround is to build with the library directory specified:
$ make LIBRARY_DIRECTORY=/usr/lib/x86_64-linux-gnu/
Long term, I'm not sure what the correct solution to this is. pkg-config is patched on Ubuntu to work with multi-arch, and since Bake needs to access the pkg-config files directly [1] then it needs to either be patched as well or have the directory specified.
My guess as to what should happen in a multi arch world is there are multiple library directories and there should be specified/detected at build time. I haven't found an obvious way to detect them - this should be possible by querying gcc/ld though as they know them at build time.
[1] I initially used the pkg-config command line tool but I can't easily get good information to report why things wont build. I'm still deciding if this is the right solution.
This is a side effect of the mutli-arch support on Ubuntu. Short answer, for now the workaround is to build with the library directory specified:
$ make LIBRARY_ DIRECTORY= /usr/lib/ x86_64- linux-gnu/
Long term, I'm not sure what the correct solution to this is. pkg-config is patched on Ubuntu to work with multi-arch, and since Bake needs to access the pkg-config files directly [1] then it needs to either be patched as well or have the directory specified.
My guess as to what should happen in a multi arch world is there are multiple library directories and there should be specified/detected at build time. I haven't found an obvious way to detect them - this should be possible by querying gcc/ld though as they know them at build time.
[1] I initially used the pkg-config command line tool but I can't easily get good information to report why things wont build. I'm still deciding if this is the right solution.