artemp/trac2github — Issue #355: need a way to pass -R for Solaris
Author: artemp
Created: 2011-10-09 20:29:38+00:00
State: open
Labels: Scons_Build_Scripts

on Solaris, it's often necessary to pass -R when linking, in order to find dependent libraries. putting -R in LINKFLAGS when compiling mapnik doesn't work; the -R seems to get lost somewhere.

the attached patch fixes this for Mapnik 0.6.0 on Solaris 10 with Sun C++ 5.9 patch 124864-11. however, it probably needs to be implemented in a more general fashion, rather than hard-coding paths.

the patch also includes a couple of unrelated changed: more correct -h when linking, and including -library=stlport4 in CXXFLAGS, which is necessary when using Boost with Sun C++.