diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-12-11 20:36:20 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-12-16 21:15:13 -0500 |
commit | d9cc2242e21ef86b6a4a44492e65b05282cf4cce (patch) | |
tree | c972728ad89bf1522f4e16e9fceed501834fbc15 | |
parent | 44604e4ba20b6ecc971e51662feac7c5165f893c (diff) |
build.sh: another pass at the env variable help text
Thanks to prior work, this opens the door to another attempt
at improving the help text. Even until now, I was confused at what
some of the variables were used for.
These are the organizing principles I used in the hope of helping
new contributors use build.sh and long time users who may have
overlooked some of the available features.
1- The variables are group by category, meaning the "owner" of the
variables.
2- The first line is the definition of the variable
3- The second line is a hint as to what build.sh does with it
4- Use the Autotools help text where it applies rather than inventing your own
------------------------------------------------------------------------------
Environment variables specific to build.sh:
QUIET Do not print messages saying which checks are being made
Each module/components is invoked with --quite
GITROOT Source code repository path [git://anongit.freedesktop.org/git]
Optional when using --clone to update source code before building
CONFFLAGS Configure options to pass to all Autoconf configure scripts
Refer to 'configure --help' from any module/components
LIBDIR Path segment under $PREFIX for libraries (e.g., lib64) [lib]
Used to build the font path, search libraries and packages
FONTPATH Path to fonts directories [$PREFIX/$LIBDIR/X11/fonts/misc/, ...]
Picked-up by the xserver as a value for --with-default-font-path
Environment variables defined by the GNU Build System:
DESTDIR Path to the staging area where installed objects are relocated
MAKE The name of the make command [make]
MAKEFLAGS: Options to pass to all $(MAKE) invocations
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Environment variables defined by the shell:
PATH List of directories that the shell searches for commands
$DESTDIR/$PREFIX/bin is prepended
Environment variables defined by the dynamic linker:
LD_LIBRARY_PATH List directories that the linker searches for shared objects
$DESTDIR/$PREFIX/$LIBDIR is prepended
Environment variables defined by the pkg-config system:
PKG_CONFIG_PATH List directories that pkg-config searches for libraries
$DESTDIR/$PREFIX/share/pkgconfig and
$DESTDIR/$PREFIX/$LIBDIR/pkgconfig are prepended
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rwxr-xr-x | build.sh | 50 |
1 files changed, 29 insertions, 21 deletions
@@ -2,18 +2,22 @@ envoptions() { cat << EOF -global environment variables you may set: - QUIET: hush the configure script noise - -global environment variables you may set to replace default functionality: - ACLOCAL: alternate invocation for 'aclocal' (default: aclocal) - MAKE: program to use instead of 'make' (default: make) - FONTPATH: font path to use (defaults under: \$PREFIX/\$LIBDIR...) - LIBDIR: path under \$PREFIX for libraries (e.g., lib64) (default: lib) - GITROOT: path to freedesktop.org git root, only needed for --clone - (default: git://anongit.freedesktop.org/git) - -global environment variables you may set to augment functionality: +Environment variables specific to build.sh: + QUIET Do not print messages saying which checks are being made + Each module/components is invoked with --quite + GITROOT Source code repository path [git://anongit.freedesktop.org/git] + Optional when using --clone to update source code before building + CONFFLAGS Configure options to pass to all Autoconf configure scripts + Refer to 'configure --help' from any module/components + LIBDIR Path segment under \$PREFIX for libraries (e.g., lib64) [lib] + Used to build the font path, search libraries and packages + FONTPATH Path to fonts directories [\$PREFIX/\$LIBDIR/X11/fonts/misc/, ...] + Picked-up by the xserver as a value for --with-default-font-path + +Environment variables defined by the GNU Build System: + DESTDIR Path to the staging area where installed objects are relocated + MAKE The name of the make command [make] + MAKEFLAGS: Options to pass to all \$(MAKE) invocations CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a @@ -21,15 +25,19 @@ global environment variables you may set to augment functionality: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor - CONFFLAGS: additional flags to pass to all configure scripts - MAKEFLAGS: additional flags to pass to all make invocations - PKG_CONFIG_PATH: include paths in addition to: - \$DESTDIR/\$PREFIX/share/pkgconfig - \$DESTDIR/\$PREFIX/\$LIBDIR/pkgconfig - LD_LIBRARY_PATH: include paths in addition to: - \$DESTDIR/\$PREFIX/\$LIBDIR - PATH: include paths in addition to: - \$DESTDIR/\$PREFIX/bin + +Environment variables defined by the shell: + PATH List of directories that the shell searches for commands + \$DESTDIR/\$PREFIX/bin is prepended + +Environment variables defined by the dynamic linker: + LD_LIBRARY_PATH List directories that the linker searches for shared objects + \$DESTDIR/\$PREFIX/\$LIBDIR is prepended + +Environment variables defined by the pkg-config system: + PKG_CONFIG_PATH List directories that pkg-config searches for libraries + \$DESTDIR/\$PREFIX/share/pkgconfig and + \$DESTDIR/\$PREFIX/\$LIBDIR/pkgconfig are prepended EOF } |