# SunOS 5.7 version of liblist
#
# @(#)liblist.sun.app	7.4
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-/usr/ccs/bin/ld}
x:*:C:${CCOO:-CC}
x:*:a:-o
x:*:a:outfile
x:*:C:-xarch=v9
#       Sun specific CC dynmaic link flag to avoid relocation error 
#       messages and sun specific -dy -znodefs flags for normal link
#       since  -G will cause a dump if profiling specified
x:1:C:-Qoption
x:1:C:ld
x:1:C:-dy,-znodefs
x:1:!C:-dy
x:1:!C:-znodefs
#	Strip output file (if no debugging options specified):
x:2:i:-s
#	Initialisers, as per cc:
x:*:s:&COBDIR/lib/64/crti.o
x:*:s!p!P:&COBDIR/lib/64/crt1.o
x:*:sp!P:&COBDIR/lib/64/mcrt1.o
x:*:sP!p:&COBDIR/lib/64/gcrt1.o
x:*:s:&COBDIR/lib/64/values-xa.o
#	Pass through flags when using C++ compiler:
x:*:Cp:-p
x:*:CP:-xpg
x:*:Cg:-g
#	Add user (non-plus) options here:
x:*:a:useropt
#	Link in results from first link in the second link:
x:2:a:$TMPDIR/ldtab.o
#	Hide symbols that don't want to be exported - eg. -d stubs:
x:2:a:hidepass:e:_etext,_edata,_lib_version,_end,environ,_environ
#	Cobol libraries:
x:*:a:-L%COBDIR/lib
x:*:!t:-lcobrts64
x:*:t:-lcobrts64_t
x:*:a:-lcobcrtn64
x:*:!t:-lcobmisc64
x:*:t:-lcobmisc64_t
x:*:a:-lcobstat64
#	Add user plus options here:
x:*:a:plusopt
#	More emulation of cc (MUST be after MF/user libraries):
x:*:s!p:-YP,$COBCCDIR/prod/lib/v9:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9
x:*:sp:-YP,$COBCCDIR/prod/lib/v9/libp:/usr/ccs/lib/libp/sparcv9:/usr/lib/libp/sparcv9:$COBCCDIR/prod/lib/v9:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9
x:2:s:-Qy
x:2:sp:-R/usr/lib/libp/sparcv9
#	OS libraries, as needed by the COBOL RTS.
x:*:st:-lpthread
x:*:st:-lrt
x:*:s:-ldl
#	OS libraries, as per cc:
x:*:s:-lc
# 	The first link for an C++ executable includes the -G flag which 
#        causes CC to not include system libraries - we need these so that
#        -U will not cause _tons_ of warning messages and unnecessary 
#        dynload symbols
#	OS libraries, as needed by the COBOL RTS.
x:*:Ct:-lpthread
x:*:Ct:-lrt
x:*:C:-ldl
x:2:Ct:-mt
#	OS libraries, as needed by the CC compiler
x:1:C:-lCstd
x:1:C:-lCrun
x:1:C:-lm
x:1:C:-lw
x:1:Ct:-lthread
x:1:C:-lc
#	Finalisation routine, as per cc:
x:*:s:&COBDIR/lib/64/crtn.o
# Specification for linking to shared object (shared library, CSO and scCSO)
#	Initial command:
z:*:s:${LD:-/usr/ccs/bin/ld}
z:*:C:${CCOO:-CC}
z:*:a:-o
z:*:a:outfile
z:*:C:-xarch=v9
#	Link to shared object (and allow unresolved symbols in first link):
z:*:a:-G
#	Initialisers, as per cc:
z:*:s:&COBDIR/lib/64/crti.o
z:*:s:&COBDIR/lib/64/values-xa.o
#	Pass through flags when using C++ compiler:
z:*:Cp:-p
z:*:CP:-xpg
z:*:Cg:-g
#	Allow version numbering (for shared libraries only):
z:*:h:-h
z:*:h:outfile
#	Hide symbols that don't want to be exported - eg. -d stubs:
z:2:a:hidepass:e:_etext,_edata,_lib_version,_end
#       Bind all global references to symbols defined in the shared
#       object - we suppress errors on undefined symbols by -znodefs
#       however we will still get information on undefs
z:2:a:-Bsymbolic
z:2:a:-znodefs
#	Add user (non-plus) options here:
z:*:a:useropt
#	Link in results from first link in the second link:
z:2:a:$TMPDIR/ldtab.o
#	Cobol libraries required for self contained callable shared objects:
z:*:y:-L%COBDIR/lib
z:*:y!t:-lcobrts64
z:*:yt:-lcobrts64_t
z:*:y:-lcobcrtn64
z:*:y!t:-lcobmisc64
z:*:yt:-lcobmisc64_t
# 	When using CC link (with C++ object) include all system libraries 
#        that might be required - most important is the libC.xx
z:*:yt!C:-lpthread
z:*:yt!C:-lrt
z:*:y!C:-ldl
z:*:Ct:-lpthread
z:*:Ct:-lrt
z:*:C:-ldl
z:*:C:-lCrun
z:*:C:-lm
z:*:C:-lw
z:*:Ct:-lthread
z:*:C:-lc
#	Add user plus options here:
z:*:a:plusopt
#	More emulation of cc:
z:*:s!p:-YP,$COBCCDIR/prod/lib/v9:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9
z:*:sp:-YP,$COBCCDIR/prod/lib/v9/libp:/usr/ccs/lib/libp/sparcv9:/usr/lib/libp/sparcv9:$COBCCDIR/prod/lib/v9:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9
z:2:s:-Qy
z:2:sp:-R/usr/lib/libp/sparcv9
#	Finalisation routine, as per cc:
z:*:s:&COBDIR/lib/64/crtn.o
