Passing -Wl, -rpath, /some/dir/where/shared/libs/hide to a module build

Thomas Schulz schulz at
Wed Apr 15 12:46:29 MDT 2015

> Hi folks,
> When building a Samba VFS module that needs to link against some
> shared-libs that hide in interesting places it looks like I would need
> to do something like:
>    bld.SAMBA3_MODULE('some-module', ..., cflags='-Wl,-rpath,/hiding/place', ...)
> Is that correct or is there a better way of doing it?
> -- 
> Regards,
> Richard Sharpe

See the discussion and fix from Bug 10112.
The short answer is to use '-R' instead of '-rpath'.

Tom Schulz
Applied Dynamics Intl.
schulz at

More information about the samba-technical mailing list