wxGTK can use either unixODBC or libiodbc. Current ebuild accepts only unixODBC. A not very complicated patch allows the use of libiodbc - it doesn't work out-of-the-box, cause it searches for the headers in an incorrect place. Writing a better patch, that lets choose between those two flavors shouldn't be hard. After applying patch, calling eautoconf is necessary. On a not really related note: wxGTK has an automagical dep on esound.
Created attachment 204520 [details, diff] patch that prefers libiodbc Noteworthy may be the fact, that had the upstream check work, it would prefer iodbc too - it would use this lib in builtin case.
Any chance this could get in upstream first?
Frankly - not really. This is a hack valid for Gentoo unixODBC/libiodbc layout. Just as the comment seen in this patch states, the proper way would be using {,i}odbc-config, but this patch works on Gentoo just fine.
wxGTK:2.8 has been last rited in bug 661284 and and wxGTK:3.0 doesn't have ODBC, thus closing this bug here as obsolete