#  5.0 version of liblist
#
# @(#)liblist.aix.app	7.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:-b64
x:*:C:-q64
x:*:s!p!P:/lib/crt0_64.o
x:*:sp:/lib/mcrt0_64.o
x:*:sP:/lib/gcrt0_64.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:-lcobrts64.2
x:*:t:-lcobrts64_t.2
x:*:a:-lcobcrtn64.2
x:*:!t:-lcobmisc64.2
x:*:t:-lcobmisc64_t.2
x:*:a:-lcobstat64
#	Add user plus options here:
x:*:a:plusopt
#	More emulation of cc (MUST be after MF/user libraries):
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:*:s:-b64
z:1:C:-b64
z:2:C:-X64
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:-lcobrts64.2
z:2:yt:-lcobrts64_t.2
z:2:y:-lcobcrtn64.2
z:2:y!t:-lcobmisc64.2
z:2:yt:-lcobmisc64_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:*: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
