Библиотека сайта rus-linux.net
|Maximum RPM: Taking the Red Hat Package Manager to the Limit|
|Prev||Chapter 19. Building Packages for Multiple Architectures and Operating Systems||Next|
While the optflags entry doesn't play a part in determining the build or install platform, it does play a role in multi-platform package building. The optflags entry is used to define a standard set of options that can be used during the build process, specifically during compilation.
If RPM was running on an Intel 80386-compatible architecture, the optflags value would be set to -O2 -m486 -fno-strength-reduce. If, however, RPM was running on a Sun SPARC-based system, optflags would be set to -O2.
This entry sets the
RPM_OPT_FLAGS environment variable,
which can be used in the %prep,
%build, and %install scripts.
Только зарегистрированные пользователи могут оценивать и комментировать статьи.