Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-07 11:49:27


On Tuesday 07 December 2004 19:36, cepstein wrote:
> When trying to build a small shared library with BBV2 and gcc 3.3.4 on
> Solaris and I get the error reproduced below.

Did you try

using gcc : : : <linker-type>sun ;

?

> gcc.link bin/gcc/debug/test-k
> ld: fatal: option -dn and -P are incompatible
> ld: fatal: Flags processing errors
> collect2: ld returned 1 exit status
>
....
> In gcc.jam there is the following comment:
>
> # Solaris linker does not have a separate -rpath-link, but
> # allows to use -L for the same purpose.
> flags $(toolset).link LINKPATH $(condition) : <xdll-path> :
> unchecked ;

This is only triggered when <linker>sun is specified.

> But further down:
>
> actions link.dll bind LIBRARIES
> {
> "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)"
> -o "$(<)" $(HAVE_SONAME)-Wl,-h$(SPACE)-Wl,$(<[1]:D=) -shared "$(>)"
> "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(OPTIONS)
> }

This does not contain -rpath-link, but "actions link" contain it. However, on
Sun linker, the value of RPATH_LINK should be empty and -rpath-link should
not show up in the linker command line.

Try specifing <linker>sun and let me know if this works.

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk