The Samba-Bugzilla – Bug 10456
Run path not set on Solaris
Last modified: 2014-02-24 15:15:59 UTC
Building Samba 4.1.4 on a Solaris 10 i386 box. The run path is not set correctly.
Configure concludes that a run path can not be set. The test in configure is:
['/opt/local/bin/gcc', 'default/main_2.o', '-o',
'-Ldefault/libdir', '-Wl,-Bdynamic', '-llib1']
The part with '-R/opt/local...' is correct. The part with
'-Wl,-rpath,/home/projects/...' will cause an error as the Solaris linker does not understand that.
If you replace '-Wl,-rpath,' with '-R' than this test should pass.
*** This bug has been marked as a duplicate of bug 10112 ***
I know that this bug is closed, but to prevent anyone reading this from becoming confused, I should mention that the '-R/opt/local/samba4/lib...' that shows up in the test run by configure is due to my specifying that with the LDFLAGS environmental variable as follows:
./configure configure --prefix=/opt/local/samba4