tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "Fixing" new ld(1) DT_NEEDED handling

On Mon, Oct 14, 2013 at 03:34:56PM +0200, Martin Husemann wrote:
> The joyent/smartos bulk builds are done with the Solaris tools.
> And I wonder this too.

I looked at one example (that I know builds on SmartOS) and found multiple

First, the upstream configure itselfs has lots of special stuff:

    if test "$SOLARIS_SUNPRO_CC"; then
       LDFLAGS="$LDFLAGS -z ignore -R '\$\$ORIGIN:\$\$ORIGIN/..' -z lazyload -z 
combreloc -z muldefs"
       LIBS="-lCrun -lCstd -lc $LIBS"
       CFLAGS="$CFLAGS -xlibmieee -xstrconst -xbuiltin=%all 
       CXXFLAGS="$CXXFLAGS -xlibmieee -xbuiltin=%all 
-features=tmplife,tmplrefstatic,extensions,no%except -norunpath 
-D__FUNCTION__=__func__ -template=no%extdef"
       LDFLAGS="-xildoff $LDFLAGS"

(not sure which strike here)

and second the Makefile adds various flags depending on OS:

Makefile:LDFLAGS.SunOS+=                -lm
Makefile:LDFLAGS.DragonFly=     -lplc4 -lnspr4
Makefile:LDFLAGS.FreeBSD=       -lplc4 -lnspr4
Makefile:LDFLAGS.Linux=         -lnspr4

This all stops making any sense to me.
Let's leave it as is and drop this thread.


Home | Main Index | Thread Index | Old Index