# TRU 64 UNIX version of liblist
#
# @(#)liblist.alp.app	6.8
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-/usr/lib/cmplrs/cc/ld}
x:*:C:${CCOO:-cxx}
x:*:a:-o
x:*:a:outfile
#	Restrict addresses to 32bits:
x:*:a:-taso
#	Strip output file (if no debugging options specified):
x:2:i:-s
#	Debug/Optimisation flags, as per cc:
x:*:si:-g0
x:*:sg:-g2
x:*:si:-O1
#	Allow unresolved symbols in first link:
x:1:a:-shared
#	Prevent so_locations file being produced - $TMPDIR removed by cob.
x:1:a:-update_registry
x:1:a:$TMPDIR/so_locations
#	Allow shared objects at run-time, as per cc:
x:2:a:-call_shared
x:2:a:-msym
x:*:a:-so_archive
#	Initialisers, as per cc:
x:*:s!p!P:/usr/lib/cmplrs/cc/crt0.o
x:*:sp:/usr/lib/cmplrs/cc/mcrt0.o
x:*:sP:/usr/lib/cmplrs/cc/gcrt0.o
#	Pass through gprof flag, as per cc:
x:*:P:-pg
#	Pass through flags when using C++ compiler:
x:*:Cp:-p
x:*:Cg:-g
x:*:Ct:-pthread
#       Symbol hiding and exporting. Use linker options to mark hidden symbols
#	as local. Use hidepass to complete the process and clear the name.
x:2:a:hidepass:e:etext,_etext,_ftext,_ftlsinit,__Argc,__Argv,__ldr_data
x:2:s:-hidden
x:2:s:-input
x:2:s:exportfile(-exported_symbol %s)
x:2:C:-Wl,-hidden
x:2:C:-Wl,-input
x:2:C:-Wl,exportfile(-exported_symbol %s)
#	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
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|P):-L/usr/lib/cmplrs/cc
x:*:s!t(p|P):-lprof1
x:*:st(p|P):-lprof1_r
x:*:s(p|P):-lpdf
#	OS libraries, as per cc:
x:*:stP:-no_pg
x:*:st:-lpthread
x:*:s:-lexc
x:*:s:-lc
# Specification for linking to shared object (shared library, CSO and scCSO)
#	Initial command:
z:*:s:${LD:-/usr/lib/cmplrs/cc/ld}
z:*:C:${CCOO:-cxx}
z:*:a:-o
z:*:a:outfile
#	Restrict addresses to 32bits:
z:*:a:-taso
#	Debug/Optimisation flags, as per cc:
z:*:si:-g0
z:*:sg:-g2
z:*:si:-O1
#	Link to shared object (and allow unresolved symbols in first link):
z:*:a:-shared
z:2:a:-msym
#	Prevent so_locations file being produced - $TMPDIR removed by cob.
z:*:a:-update_registry
z:1:a:$TMPDIR/so_locations
z:2:a:${COBSOLOC:-$TMPDIR/so_locations}
#	Pass through gprof flag, as per cc:
z:*:P:-pg
#	Pass through flags when using C++ compiler:
z:*:Cp:-p
z:*:Cg:-g
z:*:Ct:-pthread
#	Allow version numbering (for shared libraries only):
z:*:h:-set_version
z:*:h:outfile
#	Bind all global references to symbols defined in the shared object:
z:2:a:-B
z:2:a:symbolic
#       Symbol hiding and exporting. Use linker options to mark hidden symbols
#	as local. Use hidepass to complete the process and clear the name.
z:2:a:hidepass:e:etext,_etext,_ftext,_ftlsinit,__Argc,__Argv,__ldr_data
z:2:s:-hidden
z:2:s:-input
z:2:s:exportfile(-exported_symbol %s)
z:2:C:-Wl,-hidden
z:2:C:-Wl,-input
z:2:C:-Wl,exportfile(-exported_symbol %s)
#	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
z:2:s:-hidden_symbol
z:2:s:__INIT__mFsoinit
z:2:s:-hidden_symbol
z:2:s:__FINI__mFsofini
z:2:C:-Wl,-hidden_symbol
z:2:C:-Wl,__INIT__mFsoinit
z:2:C:-Wl,-hidden_symbol
z:2:C:-Wl,__FINI__mFsofini
#	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
#	Add user plus options here:
z:*:a:plusopt
#	More emulation of cc:
z:*:s(p|P):-L/usr/lib/cmplrs/cc
z:*:s!t(p|P):-lprof1
z:*:st(p|P):-lprof1_r
z:*:s(p|P):-lpdf
#	OS libraries, as per cc:
z:*:stP:-no_pg
z:*:st:-lpthread
z:*:s:-lexc
z:*:s:-lc
