|
|
@@ -204,6 +204,77 @@ Show the usage message and exit.
|
|
|
.BR \-\-version
|
|
|
Show the version and exit.
|
|
|
.
|
|
|
+.SH ENVIRONMENT
|
|
|
+A set of environment variables for setting compiler and linker options are
|
|
|
+set to default values unless already set in the environment. Note that
|
|
|
+this mechanism was only introduced in dpkg-dev, version 1.14.17 and
|
|
|
+not all \fIrules\fP files and build tools will honour these variables,
|
|
|
+yet.
|
|
|
+.TP
|
|
|
+.B CFLAGS
|
|
|
+Optimization options which are passed to the debian build system and
|
|
|
+can/should be overriden by the package build if needed (default value:
|
|
|
+.BR \-g\ \-O2
|
|
|
+, or
|
|
|
+.BR \-g\ \-O0
|
|
|
+if
|
|
|
+.BR noopt
|
|
|
+is specified in DEB_BUILD_OPTIONS). Overriding options can be
|
|
|
+used to explicitely set a
|
|
|
+higher optimization level, or work around compiler bugs, which only
|
|
|
+can be seen with some optimization levels (the last opt level "wins").
|
|
|
+.TP
|
|
|
+.B CFLAGS_APPEND
|
|
|
+Optimization options appended to the compiler flags, which must not be
|
|
|
+overwritten by the package (mostly used to for test builds). Default
|
|
|
+value: empty.
|
|
|
+.TP
|
|
|
+.B CXXFLAGS
|
|
|
+Same as
|
|
|
+.B CFLAGS
|
|
|
+for C++ sources.
|
|
|
+.TP
|
|
|
+.B CXXFLAGS_APPEND
|
|
|
+Same as
|
|
|
+.B CFLAGS_APPEND
|
|
|
+for C++ sources.
|
|
|
+.TP
|
|
|
+.B FFLAGS
|
|
|
+Same as
|
|
|
+.B FFLAGS
|
|
|
+for Fortran sources.
|
|
|
+.TP
|
|
|
+.B FFLAGS_APPEND
|
|
|
+Same as
|
|
|
+.B CFLAGS_APPEND
|
|
|
+for Fortran sources.
|
|
|
+.TP
|
|
|
+.B CPPFLAGS
|
|
|
+Preprocessor flags which are passed to the debian build system and
|
|
|
+can/should be overriden by the package build if needed (default:
|
|
|
+empty). This macro is seldom used (most build systems just use
|
|
|
+.B CFLAGS
|
|
|
+instead of
|
|
|
+.B CPPFLAGS).
|
|
|
+.TP
|
|
|
+.B CPPFLAGS_APPEND
|
|
|
+Preprocessor flags appended to the preprocessor flags, which must not
|
|
|
+be overwritten by the package (mostly used to for test
|
|
|
+builds). Default value: empty.
|
|
|
+.TP
|
|
|
+.B LDFLAGS
|
|
|
+Options passed to the compiler when linking executables or shared
|
|
|
+objects (if the linker is called directly, then
|
|
|
+.B -Wl
|
|
|
+and
|
|
|
+.B ,
|
|
|
+have to be stripped from these options. Default value: empty.
|
|
|
+.TP
|
|
|
+.B LDFLAGS_APPEND
|
|
|
+Optimization options appended to the compiler flags when linking code,
|
|
|
+which must not be overwritten by the package (mostly used to for test
|
|
|
+builds). Default value: empty.
|
|
|
+.
|
|
|
.SH BUGS
|
|
|
It should be possible to specify spaces and shell metacharacters in
|
|
|
and initial arguments for
|