It's not possible to build IBM DB2 PDO support because of hardcoded paths to DB2 SDK.
Created attachment 247482 [details, diff] src_configure patch Makes src_configure aware of DB2_HOME environment variable (modeled after ORACLE_HOME). Resulting php cgi/cli/apache2-mod objects have proper RPATH appendend sp no further care required. LD_LIBRARY_PATH (see patch) is only needed for src_configure purpose.
Thanks for reporting this! Just one question about the patch: shouldn't it be LD_LIBRARY_PATH+=...?
Yeah, why not. If there's LD_LIBRARY_PATH defined already (it actually shouldn't be the case, and it's not supposed to be needed) let's preserve it.
I see. After reading up on LD_LIBRARY_PATH seperators, it doesn't seem to be a good idea to use +=":${DB2_HOME}/`get_libdir`" here. Empty entries are "." by default and something tells me this is going to come back and bite us security-wise. So I committed the patch as initially thought. Thanks :)