# HP/UX PA/RISC version of liblist
#
# @(#)liblist.hp.app	6.1
# Make sure linker flags passed to CC are prefixed by '-Wl,'.
*:*:C:handoff_prfx(-Wl,)
# Set default library search path
*:1:s:set LPATH=/usr/lib:/opt/langtools/lib:${LPATH:-}
*:1:s(p|P):set LPATH=/usr/lib/libp:$LPATH
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-ld}
x:*:C:${CCOO:-aCC}
x:*:a:-o
x:*:a:outfile
x:*:s:-u
x:*:s:main
#	Remove file if error
x:2:s:+k
x:2:C:-Wl,+k
#	/SVR4 flag to allow unresolved symbols in first link:
x:1:s:-Bimmediate
x:1:s:-Bnonfatal
x:1:s:-r
x:1:C:-Wl,-r
#	Initialisers, as per cc:
x:*:s!p!P:/opt/langtools/lib/crt0.o
x:*:sp!P:/opt/langtools/lib/mcrt0.o
x:*:sP!p:/opt/langtools/lib/gcrt0.o
#	Pass through profiling flags when using C++ compiler:
x:*:Cp:+I
x:*:Cg:-G
#	Make sure null addresses are trapped
x:2:s:-z
x:2:C:-Wl,-z
#	Make sure linked executables look after the SHLIB_PATH
x:2:s:+s
x:2:C:-Wl,+s
#	Search /usr/lib after SHLIB_PATH
x:2:s:+b/usr/lib
x:2:C:-Wl,+b/usr/lib
#	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
x:*:!C:-lcobccsupport
#	Add user plus options here:
x:*:a:plusopt
#	Export symbols from executable (so that can be ref'd by shared objs):
x:2:s:-E
x:2:s:-c
x:2:s:hidefile(-h %s)
x:2:C:-Wl,-E,-c,hidefile(-h %s)
#	More emulation of cc (MUST be after MF/user libraries):
# 2:s:-Qy
#	OS libraries, as per cc:
x:*:t:-lpthread
x:2:s:-lcl
x:*:s:-lc
x:*:s:-ldld
x:*:sg:/opt/langtools/lib/end.o
# Specification for linking to shared object (shared library, CSO and scCSO)
#	Initial command:
z:*:s:${LD:-ld}
z:*:C:${CCOO:-aCC}
z:*:C:+Z
z:*:a:-o
z:*:a:outfile
# Link to shared object
z:*:a:-b
#	Make sure shared libs look after the SHLIB_PATH
z:*:s:+s
z:*:C:-Wl,+s
#	Search /usr/lib after SHLIB_PATH
z:2:s:+b/usr/lib
z:2:C:-Wl,+b/usr/lib
#	Make sure null addresses are trapped
z:*:s:-z
z:*:C:-Wl,-z
#	No "-h" version numbering required for callable shared objects.
#	Allow library version numbering:
z:*:sh:+h
z:*:sh:outfile
z:*:Ch:-Wl,+h,outfile
#	Setup initialization/finalization routine
z:2:s:+I_mFsoinitfini
z:2:C:-Wl,+I_mFsoinitfini
#	Export all symbols but hide symbols that don't want to be
#	exported - eg. -d stubs:
z:2:s:-E
z:2:s:-c
z:2:s:hidefile(-h %s)
z:2:C:-Wl,-E,-c,hidefile(-h %s)
#	Bind all global references to symbols defined in the shared object:
z:2:s:-Bsymbolic
z:2:s:-Bimmediate
z:2:C:-Wl,-Bsymbolic
z:2:C:-Wl,-Bimmediate
#	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 (non-plus) options here:
z:*:a:useropt
#	Link in results from first link in the second link:
z:2:a:$TMPDIR/ldtab.o
#	Add user plus options here:
z:*:a:plusopt
#	OS libraries
z:*:yt:-lpthread
