makepkg: move rust related documentation into the configuration file

Adding more and more languages will make the man page become increasingly
difficult to navigate.  Move documentation into the configuration file
where variables are defined.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2024-02-24 20:00:58 +10:00
parent d55b47e551
commit 2a0dd9ec09
2 changed files with 8 additions and 11 deletions

View file

@ -72,10 +72,6 @@ Options
**CXXFLAGS=**"cxxflags":: **CXXFLAGS=**"cxxflags"::
Flags used for the C++ compiler; see CFLAGS for more info. Flags used for the C++ compiler; see CFLAGS for more info.
**RUSTFLAGS=**"rustflags"::
Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
linkman:rustc[1] for more details on the available flags.
**LDFLAGS=**"ldflags":: **LDFLAGS=**"ldflags"::
Flags used for the linker. Several options may be specified with common Flags used for the linker. Several options may be specified with common
usage resembling ``-Wl,--hash-style=gnu''. Read ld(1) for more details on usage resembling ``-Wl,--hash-style=gnu''. Read ld(1) for more details on
@ -98,11 +94,6 @@ Options
**DEBUG_CXXFLAGS=**"debug_cxxflags":: **DEBUG_CXXFLAGS=**"debug_cxxflags"::
Debug flags used for the C++ compiler; see DEBUG_CFLAGS for more info. Debug flags used for the C++ compiler; see DEBUG_CFLAGS for more info.
**DEBUG_RUSTFLAGS=**"debug_rustflags"::
Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
more details on the available flags.
**BUILDENV=(**!distcc !color !ccache check !sign**)**:: **BUILDENV=(**!distcc !color !ccache check !sign**)**::
This array contains options that affect the build environment; the defaults This array contains options that affect the build environment; the defaults
are shown here. All options should always be left in the array; to enable are shown here. All options should always be left in the array; to enable

View file

@ -6,6 +6,12 @@
######################################################################### #########################################################################
# RUST LANGUAGE SUPPORT # RUST LANGUAGE SUPPORT
######################################################################### #########################################################################
#
#RUSTFLAGS="-C opt-level=2" # Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
# linkman:rustc[1] for more details on the available flags.
#RUSTFLAGS="-C opt-level=3"
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
# more details on the available flags.
#DEBUG_RUSTFLAGS="-C debuginfo=2" #DEBUG_RUSTFLAGS="-C debuginfo=2"