Building Subversion with Sun Workshop

Rather than wade through the morass of dependencies on, I thought I’d build my own Subversion. It turns out that I had to specify a couple of extra hints in order to use the Sun compiler. Here is my configure line:

./configure ‘–prefix=/usr/local/svn-install/current’ ‘–with-ssl’ ‘–with-openssl=/usr/sfw’ ‘CC=/usr/bin/cc’ ‘CXX=/usr/bin/CC’ ‘LDFLAGS=-R/usr/ucblib -R/usr/sfw/lib’

The Neon library needs ssl; the Serf library needs to know about openssl. And without the Reverse Path entries, libraries in neither of those directories are picked up by the installed binaries.

Be Sociable, Share!

2 thoughts on “Building Subversion with Sun Workshop

  1. Trivia: Use /usr/ccs/bin/ld instead of /usr/ucb/ld to avoid having to add /usr/ucblib to rpath. /usr/ucb[lib] is for some form of compatibility with ancient levels of BSD-based Solaris. (So why is /usr/ucb in the default PATH in S10, and /usr/ccs/bin isn’t?)

  2. Why yes, putting /usr/ccs/bin in front does the trick. First time I ran into this: I guess I usually put /usr/ccs/bin before the default PATH. Yes, wonder why that’s still there.

Comments are closed.