# HP/UX PA/RISC version of liblist
#
# @(#)liblist.hp.app	7.6
# 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/pa20_64:/opt/langtools/lib/pa20_64:${LPATH:-}
*:2:s(p|P):set LPATH=/usr/lib/pa20_64/libp:$LPATH
# Specification for linking to executable
#	Initial command:
x:*:s:${LD:-ld}
x:*:C:${CCOO:-aCC}
x:*:C:-AA
x:*:a:-o
x:*:a:outfile
x:*:s:-u
x:*:s:main
#	Ensure C++ compiler uses correct mode:
x:*:C:+DA2.0W
#	Declare and hide initialization routine
x:2:s:+init
x:2:s:_mFexeinit
x:2:s:-h
x:2:s:_mFexeinit
x:2:C:-Wl,+init,_mFexeinit,-h,_mFexeinit
#	Declare and hide finalization routine
x:2:s:+fini
x:2:s:_mFexefini
x:2:s:-h
x:2:s:_mFexefini
x:2:C:-Wl,+fini,_mFexefini,-h,_mFexefini
#	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:+allowunsats
x:1:s:+vnoshlibunsats
x:1:C:-Wl,-Bimmediate
x:1:C:-Wl,-Bnonfatal
x:1:C:-Wl,+allowunsats
x:1:C:-Wl,+vnoshlibunsats
#	Initialisers, as per cc:
x:*:s:/opt/langtools/lib/pa20_64/crt0.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
#	When profiling search profile libraries first.
x:2:sp!P:-lprof
x:2:sP!p:-lgprof
#	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
#	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:1:a:-lc
x:2:s:-lc
x:*:s:-ldld
x:*:sg:/opt/langtools/lib/pa20_64/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:-AA
z:*:C:+DA2.0W
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:ys:+b/usr/lib
z:2:yC:-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
#	Declare and hide initialization routine
z:2:s:+init
z:2:s:_mFsoinit
z:2:s:-h
z:2:s:_mFsoinit
z:2:C:-Wl,+init,_mFsoinit,-h,_mFsoinit
#	Declare and hide finalization routine
z:2:s:+fini
z:2:s:_mFsofini
z:2:s:-h
z:2:s:_mFsofini
z:2:C:-Wl,+fini,_mFsofini,-h,_mFsofini
#	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:-lcobrts64
z:*:yt:-lcobrts64_t
z:*:y:-lcobcrtn64
z:*:y!t:-lcobmisc64
z:*:yt:-lcobmisc64_t
z:2:C:-L/usr/lib/pa20_64
z:2:C:-lstd_v2
z:2:C:-lCsup_v2
z:2:C:-lm
z:2:C:-lcl
z:2:C:-lc
#	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
