#  5.0 version of liblist
#
# @(#)liblist.aix.app	6.1
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-ld}
x:*:C!t:${CCOO:-xlC}
x:*:Ct:${CCOO:-xlC_r}
x:*:a:-o
x:*:a:outfile
#	Ensure "main" included in a.out, and so exported
x:1:a:-umain
#	Set up MF initialisation routines:
x:2:a:-binitfini:_mFexeinit:_mFexefini
x:2:a:-bE:exportfile
x:1:a:-bhalt:4
# x:1:a:-bnogc
#	Allow unresolved symbols in first link:
x:1:a:-berok
#	Strip output file (if no debugging options specified):
x:2:i:-s
#	Include OS dynamic linker so that can load CSOs:
x:*:a:-brtl
#	Initialisers, as per cc:
x:*:s:-b32
x:*:C:-q32
x:*:s!t!p!P:/lib/crt0.o
x:*:st!p!P:/lib/crt0_r.o
x:*:s!tp:/lib/mcrt0.o
x:*:s!tP:/lib/gcrt0.o
x:*:stp:/lib/mcrt0_r.o
x:*:stP:/lib/gcrt0_r.o
#	Pass through flags when using C++ compiler:
x:*:Cp:-p
x:*:CP:-pg
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
#	Cobol libraries:
x:*:a:-L%COBDIR/lib
x:*:!t:-lcobrts.2
x:*:t:-lcobrts_t.2
x:*:a:-lcobcrtn.2
x:*:!t:-lcobmisc.2
x:*:t:-lcobmisc_t.2
x:*:a:-lcobstat
#	Add user plus options here:
x:*:a:plusopt
#	More emulation of cc (MUST be after MF/user libraries):
x:*:sg:-lg
x:*:sg:-bE:/usr/lib/libg.exp
x:*:st:-L/usr/lib/threads
x:*:st:-lpthreads
x:*:s:-lc
x:*:s(p|P):-L/lib/profiled
x:*:s(p|P):-L/usr/lib/profiled
# Specification for linking to shared object (shared library, CSO and scCSO)
#	Initial command:
z:1:a:${LD:-ld}
z:2:s:${LD:-ld}
z:2:C!t:makeC++SharedLib
z:2:Ct:makeC++SharedLib_r
z:2:C:-p0
z:*:a:-o
z:*:a:outfile
#	Include OS dynamic linker so that can load CSOs:
z:*:a:-brtl
#	Set up MF initialisation routines:
z:2:a:-binitfini:_mFsoinit:_mFsofini
#	Link to shared object (and allow unresolved symbols in first link):
z:*:a:-G
#	Bind all global references to symbols defined in the shared object:
z:2:a:-bsymbolic
#	Hide symbols that don't want to be exported - eg. -d stubs:
z:2:s:-bE:exportfile
z:2:C:-Eexportfile
z:*:Z:-bnoentry
z:*:!Z:-e
z:*:!Z:entrypt
#	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:2:y:-L%COBDIR/lib
z:2:y!t:-lcobrts.2
z:2:yt:-lcobrts_t.2
z:2:y:-lcobcrtn.2
z:2:y!t:-lcobmisc.2
z:2:yt:-lcobmisc_t.2
#	OS libraries needed for rts
z:*:a:-lcfg
z:*:a:-lodm
#	Add user plus options here:
z:*:a:plusopt
#	More emulation of cc:
z:*:sg:-lg
z:*:sg:-bE:/usr/lib/libg.exp
z:*:st:-L/usr/lib/threads
z:*:st:-lpthreads
z:*:s:-lc
z:*:s(p|P):-L/lib/profiled
z:*:s(p|P):-L/usr/lib/profiled
