# 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:-melf64_ia64
x:*:s:-dynamic-linker
x:*:s:/lib/ld-linux-ia64.so.2
#	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/lib/crt1.o
x:2:sp:/usr/lib/gcrt1.o
x:2:s:/usr/lib/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/lib
x:*:s:-L/usr/lib
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/crtend.o
x:2:s:/usr/lib/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
