# SunOS 5.7 version of liblist
#
# @(#)liblist.sun.app	6.3
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-/usr/ccs/bin/ld}
x:*:C:${CCOO:-CC}
x:*:a:-o
x:*:a:outfile
#       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/32/crti.o
#   Libraries for SunOS on Sparc
x:*:s!p!P:&COBDIR/lib/32/crt1.o
x:*:sp!P:&COBDIR/lib/32/mcrt1.o
x:*:sP!p:&COBDIR/lib/32/gcrt1.o
x:*:s:&COBDIR/lib/32/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:-lcobrts
x:*:t:-lcobrts_t
x:*:a:-lcobcrtn
x:*:!t:-lcobmisc
x:*:t:-lcobmisc_t
x:*:a:-lcobstat
#	Add user plus options here:
x:*:a:plusopt
#	More emulation of cc (MUST be after MF/user libraries):
x:*:s!p:-YP,/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
x:*:sp:-YP,/opt/SUNWspro/prod/lib/libp:/usr/ccs/lib/libp:/usr/lib/libp:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
x:2:s:-Qy
#	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:-lcx
x:1:C:-lc
#	Finalisation routine, as per cc:
x:*:s:&COBDIR/lib/32/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
#	Link to shared object (and allow unresolved symbols in first link):
z:*:a:-G
#	Initialisers, as per cc:
z:*:s:&COBDIR/lib/32/crti.o
z:*:s:&COBDIR/lib/32/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:-lcobrts
z:*:yt:-lcobrts_t
z:*:y:-lcobcrtn
z:*:y!t:-lcobmisc
z:*:yt:-lcobmisc_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
#    SC 5.0 defines
#z:*:C:-lCstd
z:*:C:-lCrun
z:*:C:-lm
z:*:C:-lw
z:*:Ct:-lthread
z:*:C:-lcx
z:*:C:-lc
#	Add user plus options here:
z:*:a:plusopt
#	More emulation of cc:
z:*:s!p:-YP,/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
z:*:sp:-YP,/opt/SUNWspro/prod/lib/libp:/usr/ccs/lib/libp:/usr/lib/libp:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
z:2:s:-Qy
#	Finalisation routine, as per cc:
z:*:s:&COBDIR/lib/32/crtn.o
