[Interest] To rpath or not when building Qt

Thiago Macieira thiago.macieira at intel.com
Tue Mar 10 21:47:59 CET 2015


On Tuesday 10 March 2015 19:07:19 Scott Aron Bloom wrote:
> When building Qt for distribution via LGPL of a closed source product using
> shared libraries.
> 
> What is the best method to make sure the plugins pickup the Qt libraries you
> are shipping?

RPATH with $ORIGIN and make sure that the linker option --enable-new-dtags is 
off. If that option is turned on, then the -rpath option inserts DT_RUNPATH 
instead of DT_RPATH dynamic tags and those can be overridden by the 
LD_LIBRARY_PATH environment variable.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list