Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
nmcobol(1) OSS Shell and Utilities Reference Manual
-WBdynamic Specifies that the linker utility should use dynamic linking when
searching for libraries specified in subsequent operands of the
form -l library. Dynamic linking is in effect until a -WBstatic
flag is specified. -WBdynamic is the default setting. Refer to the
Differences Between Dynamic and Static Linking subsection
for details.
-WBstatic Specifies that the linker utility should use static linking when
searching for libraries specified in subsequent operands of the
form -l library. Static linking is in effect until a -WBdynamic
flag is specified. -WBdynamic, not -WBstatic, is the default set-
ting. Refer to the Differences Between Dynamic and Static
Linking subsection for details.
You cannot use these flags if you use the -c or -Wnolink flag.
-Wcall_shared | -Wnon_shared | -Wshared
Specifies the kind of linked file that should be created:
-Wcall_shared Directs the compiler to create a position-independent code (PIC)
program loadfile using the ld linker. If you also specify the -c or
-Wnolink flag, the file created is a PIC linkfile instead.
When you use this flag, you cannot use the following flags:
-Wnld or -Wnld_obey
-Wnon_shared
Directs the compiler to create non-PIC object files using the nld
linker. This is the default behavior.
When you use this flag, you cannot use the following flags:
-Wld or -Wld_obey
-Wshared Directs the compiler to create a PIC dynamic-link library (DLL)
using the ld linker.
When you use this flag, you cannot use the following flags:
-Wnld or -Wnld_obey
-Wcobol="args"
Passes to the NMCOBOL compiler the directives in the argument string enclosed
in quotation marks. This string follows any directives generated by other flags. If
you repeat this flag, arguments are passed to the compiler in the order specified.
-Wcolumns=n Sets the maximum number of columns for an input file to n, where n is a number in
the range 12 through 32767. If n is greater than 132, 132 is used. The compiler
ignores text in columns beyond n.
-Wcopylib="pathname"
Specifies pathname as the source file to use as the default COPY library for any
COPY statement in the source program that does not specify a library. If you
repeat this flag, the last file specified is the default COPY library. The default is to
look for a file called COPYLIB in the current working directory.
6−56 Hewlett-Packard Company 527188-004