[Scons-users] sun c/c++/shared libraries

Gary Oberbrunner garyo at oberbrunner.com
Tue May 27 20:10:53 EDT 2014


On Tue, May 27, 2014 at 11:16 AM, Tom Tanner (BLOOMBERG/ LONDON)
<ttanner2 at bloomberg.net> wrote:
>
> I'm somewhat confused as to why on solaris, the buildprefixes .o files AND shared libraries with so_, whereas everything else sticks a .pic before the .o
>
> It results in a very surprising behaviour of
>
> SharedLibrary('wibble.cc')
>
> producing this:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -o so_wibble.pic.o -c -KPIC wibble.cc
> g++: unrecognized option `-KPIC'
> g++ -G -o libso_wibble.so so_wibble.pic.o
> scons: done building targets.
>
> which is not what I expected at all,

I agree, that seems most unusual and a bit verbose.  (Not to mention
the incorrect compiler option.)  Maybe there was some reasoning behind
it in the old days.

-- 
Gary


More information about the Scons-users mailing list