1af5a29d87
- CMAKE_BUILD_TYPE=Release will force -O3 instead of respecting our CFLAGS and CXXFLAGS - Theoretically, we could patch cmake to always use -O2 instead, however, patching will break users' expectation when compiling their our code. - RelWithDebInfo could be another option if it's acceptable to always have debug symbol available. - However, some projects ignore all CFLAGS and CXXFLAGS; - Some other projects relies on CMAKE_BUILD_TYPE=Release to install to correct location and/or disable coverage. - To get away with -O3, we need patching either ways, let's go with CMAKE_BUILD_TYPE=None, and patch all problematic softwares. |
||
---|---|---|
.. | ||
R-cran.sh | ||
README | ||
cargo.sh | ||
cmake.sh | ||
configure.sh | ||
fetch.sh | ||
gem.sh | ||
gemspec.sh | ||
gnu-configure.sh | ||
gnu-makefile.sh | ||
go.sh | ||
haskell-stack.sh | ||
meson.sh | ||
meta.sh | ||
perl-ModuleBuild.sh | ||
perl-module.sh | ||
python-module.sh | ||
python2-module.sh | ||
python3-module.sh | ||
python3-pep517.sh | ||
qmake.sh | ||
raku-dist.sh | ||
ruby-module.sh | ||
scons.sh | ||
slashpackage.sh | ||
texmf.sh | ||
void-cross.sh | ||
waf.sh | ||
waf3.sh |
README
BUILD STYLES ============ These shell snippets provide support for multiple build systems, i.e GNU configure, CMake, etc. A build style file must provide at least the following functions: - do_configure - do_build - do_install If a source package defines its own do_xxx() function, the function defined in the build style file is simply ignored.