void-packages/common/build-style
Érico Rolim 84a5c1ef7c Revert "build-style/meson.sh: drop unneeded AR export"
This reverts commit 2163ca2d03.

Removing `export AR=gcc-ar` was apparently done based on the assumption
that the linked issue (https://github.com/mesonbuild/meson/issues/1646)
had been solved completely on meson's side.

Instead, their solution, seen in
https://github.com/void-linux/void-packages/pull/2815, had been to force
gcc-ar for linking static libraries; by exporting `AR=ar`, we were
accidentally breaking static libraries when LTO is enabled. This was
noticed by leah while we were trying to build qemu-user-static using the
normal libglib-devel package (built with meson, which for us defaults to
enabling LTO).

Unfortunately, while correct, this change wasn't enough to fix the
static glib build, which had to resort to disabling LTO.
2021-02-11 15:22:01 -03:00
..
cargo.sh build-style/cargo: use configure_args in do_check. 2020-07-06 09:01:06 +02:00
cmake.sh build-style/cmake: replace sed monstrosity with ${wrksrc}/${build_wrksrc} 2021-02-09 00:19:27 +01:00
configure.sh
fetch.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
gem.sh
gemspec.sh
gnu-configure.sh
gnu-makefile.sh common/build-style/gnu-makefile: pass CXXFLAGS in make invocation. 2020-12-06 22:03:54 -03:00
go.sh build-style/go: use glob instead of find 2019-11-16 12:49:56 +01:00
haskell-stack.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
meson.sh Revert "build-style/meson.sh: drop unneeded AR export" 2021-02-11 15:22:01 -03:00
meta.sh
perl-module.sh build-style/perl-module: put . into @INC 2021-02-06 13:10:59 +07:00
perl-ModuleBuild.sh
python-module.sh build-style/python[3]-module: override _PYTHON_SYSCONFIGDATA_NAME 2019-12-23 17:15:51 +01:00
python2-module.sh
python3-module.sh build-style/python3-module: prefer pytest in do_check 2020-12-09 15:45:53 -05:00
python3-pep517.sh build-style/python3-pep517: make sure ./build exists in do_install 2021-02-03 16:30:01 -05:00
qmake.sh build-style/qmake: remove RPATH for native build 2021-02-08 18:47:23 +07:00
R-cran.sh
raku-dist.sh build_style/raku-dist.sh: RAKULIB=lib 2020-05-18 13:42:00 +02:00
README
ruby-module.sh
scons.sh build-style: scons: add lowercase compiler variable 2020-05-18 00:32:13 +02:00
slashpackage.sh
texmf.sh common/build-style/texmf.sh: various improvments. 2021-01-19 19:46:52 +01:00
void-cross.sh build-style/void-cross: always enable libssp 2021-01-26 20:17:55 +01:00
waf.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01:00
waf3.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01:00

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.