# Linux version of liblist
#
# @(#)liblist.lnx.app	7.2
#
# Specification for linking to executable
#
x:*:s:${LD:-ld}
x:*:C:${CCOO:-g++}
x:*:C:handoff_prfx(-Wl,)
x:*:s:--eh-frame-hdr
x:*:s:-melf64ppc
x:*:s:-dynamic-linker
x:*:s:/lib64/ld64.so.1
#	Ensure the correct mode is used
x:*:C:-m64
#	Specify output file. Generic.
x:*:a:-o
x:*:a:outfile
#	Allow unresolved symbols in first link:
x:1:a:-shared
#	Strip output file (if no debugging options specified):
x:2:i:-s
#	Emulation of cc here. cc options and objects placed before user options
#	and objects.
x:2:s!p:/usr/lib64/crt1.o
x:2:sp:/usr/lib64/gcrt1.o
x:2:s:/usr/lib64/crti.o
x:2:s:$GCC_LIB/crtbegin.o
#	Pass through flags when using C++ compiler. These are standard.
x:*:Cp:-p
x:*:Cg:-g
#	Export all symbols
x:2:s:-E
x:2:C:-Wl,-E
#	User, non-plus, options.
x:*:a:useropt
#	Place ldtab.o after useropt.
x:2:a:$TMPDIR/ldtab.o
#	Hide symbols
x:2:a:hidepass:e:+_fp_hw,_IO_stdin_used
#	The Cobol libraries.
#	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
#	User plus options. This is generic.
x:*:a:plusopt
#	More emulation of cc: default libraries, finalisation routines etc.
#	Must come after all user options.
#	Also, system libraries required by Cobol system.
x:*:s:-L$GCC_LIB
x:*:s:-L/lib64
x:*:s:-L/usr/lib64
x:*:t:-lpthread
x:*:s:-lgcc
x:*:s:-lgcc_eh
x:*:s:-lc
x:*:s:-lgcc
x:*:s:-lgcc_eh
x:*:a:-ldl
x:2:s:$GCC_LIB/crtsavres.o
x:2:s:$GCC_LIB/crtend.o
x:2:s:/usr/lib64/crtn.o
#########################################################################
#
# Specification for linking to shared object format (DLL, CSO, scCSO)
#
#	Link to shared
z:*:s:cc
z:*:C:${CCOO:-g++}
z:*:a:handoff_prfx(-Wl,)
z:*:a:-shared
#	Ensure the correct mode is used
z:*:a:-m64
#	Name output
z:*:a:-o
z:*:a:outfile
#	Bind all global references to symbols defined in the shared object:
z:2:a:-Wl,-Bsymbolic
#	Pass through flags.
z:*:p:-p
z:*:g:-g
#	Add user options, ldtab, Cobol libraries, plusopt
z:*:a:useropt
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
z:*:a:plusopt
#	Hide symbols
z:2:a:hidepass
#	System libraries required by Cobol system.
z:*:yt:-lpthread
