Hello. I want to share experience with setting rpath option to linker when using apxs.
Right way to do this is to use -Wl,-R instead of -Wl,-rpath. Example: apxs -Wl,-R/path/to/some/library -c mod_something.c To check whether option was set use readelf -d module.so | grep RPATH -- Marko Kevac