[Samba] Run path in Samba 4.1.4

Thomas Schulz schulz at adi.com
Mon Feb 3 21:54:13 MST 2014

I have built Samba 4.1.4 on a Solaris 10 i386 box to be installed in
/opt/local/samba4. I expected that the resulting binaries would include
a run path as necessary to find the shared libraries. They did include
a run path to /opt/local/lib (which would also be needed) but not to
/opt/local/samba4/lib. I fixed this by re-running configure with the
following options

LDFLAGS="-R/opt/local/samba4/lib:/opt/local/samba4/lib/private" \
./configure configure \

Should this have been necessary? I expected from reading the help from
configure that a run path would be automatically included. By the way,
the help from configure does not mention the LDFLAGS environmental
variable. I just made a guess that it might work. And it does.

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com

More information about the samba mailing list