[m-rev.] diff: document --link-executable-command
Julien Fischer
juliensf at csse.unimelb.edu.au
Mon Feb 26 17:54:00 AEDT 2007
Estimated hours taken: 0.1
Branches: main
Document how to override the default settings for invoking the linker.
This can occasionally necessary when linking against some C++ code.
compiler/options.m
doc/user_guide.texi:
Document the `--link-executable-command' and
`--link-shared-lib-command' options.
Julien.
Index: compiler/options.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/options.m,v
retrieving revision 1.549
diff -u -r1.549 options.m
--- compiler/options.m 22 Feb 2007 07:07:02 -0000 1.549
+++ compiler/options.m 26 Feb 2007 06:44:42 -0000
@@ -4628,13 +4628,20 @@
"\t(This may be necessary if the C files contain",
"\thand-coded C code with `INIT' comments, rather than",
"\tcontaining only C code that was automatically generated",
- "\tby the Mercury compiler.)"
+ "\tby the Mercury compiler.)",
+
+ "--link-executable-command <command>",
+ "\tSpecify the command used to invoke the linker when linking",
+ "\tan executable.",
+ "--link-shared-lib-command <command>",
+ "\tSpecify the command used to invoke the linker when linking",
+ "\ta shared library."
% The --shared-library-extension,
% --library-extension, --executable-file-extension
% --create-archive-command, --create-archive-command-flags
% --create-archive-command-output-flag, --ranlib-command,
- % --ranlib-flags, --link-executable-command, --link-shared-lib-command,
+ % --ranlib-flags,
% --mkinit-command, --demangle-command, --trace-libs,
% --thread-libs, --shared-libs, --math-lib, --readline-libs,
% --linker-opt-separator,
Index: doc/user_guide.texi
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/doc/user_guide.texi,v
retrieving revision 1.511
diff -u -r1.511 user_guide.texi
--- doc/user_guide.texi 22 Feb 2007 07:07:02 -0000 1.511
+++ doc/user_guide.texi 26 Feb 2007 06:48:54 -0000
@@ -8803,6 +8803,16 @@
containing only C code that was automatically generated
by the Mercury compiler.)
+ at sp 1
+ at item --link-executable-command @var{command}
+ at findex --link-executable-command
+Specify the command used to invoke the linker when linking an executable.
+
+ at sp 1
+ at item --link-shared-lib-command @var{command}
+ at findex --link-shared-lib-command
+Specify the command used to invoke the linker when linking a shared library.
+
@end table
@c ----------------------------------------------------------------------------
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list