Commit Graph

24 Commits

Author SHA1 Message Date
Natanael Copa 69aea22462 abuild.conf: add CARGO_BUILD_JOBS
Respect the jobs limit for cargo builds by setting CARGO_BUILD_JOBS.

Also bump the default number of jobs to number of cpu cores
2021-04-23 09:52:04 +02:00
Alex Xu (Hello71) 4e548b722b abuild.conf: LDFLAGS+=-O1,--sort-common
These options are used by default in Arch Linux [0], and slightly reduce
binary size.

Note that -D_FORTIFY_SOURCE=2 and -z relro -z now are already enabled by
default in Alpine for all gcc invocations.

[0] https://git.archlinux.org/svntogit/packages.git/tree/trunk/makepkg.conf?h=packages/pacman
2021-04-12 15:06:31 +00:00
Rasmus Thomsen 13993e014a abuild.conf: add SAMUFLAGS to honor $JOBS with samu/ninja 2020-09-17 11:54:26 +00:00
Rasmus Thomsen 0a9ca00905 abuild.conf: set DFLAGS="-Os" by default
Without these we don't have any optimizations by default in D applications
2020-07-06 10:50:31 +00:00
Sören Tempel dcb7ec0c6b abuild.conf: enable PIE binaries by default for go as well
From `go help environment`:

	GOFLAGS
		A space-separated list of -flag=value settings to apply
		to go commands by default, when the given flag is known by
		the current command. Flags listed on the command-line
		are applied after this list and therefore override it.

And from `go help build`:

	-buildmode mode
		build mode to use. See 'go help buildmode' for more.

Setting this environment variable in /etc/abuild.conf allows us to build
all go binaries on the builders as PIE without needing to patch the go
compiler itself.
2020-04-17 13:16:42 +02:00
Joseph Benden b1b47140ea feat: add support for ccache
This introduces basic support for ccache, during packaging builds.

If you are building many packages, it is recommended to manually
increase the maximum size of the ccache cache. This is typically
achieved by modifying `~/.ccache/ccache.conf` and adjusting the
`max_size` setting.

Signed-off-by: Joseph Benden <joe@benden.us>
2019-09-30 12:08:17 +00:00
Kaarle Ritvanen e3a2e14ffa abuild: build in chroot
This patch is based on earlier work by Timo Teräs.
2017-06-27 14:52:50 +03:00
Timo Teräs 42738f43d4 default to host gcc's machine for CBUILD 2016-07-23 06:20:00 +00:00
Andrew Hills da666e00c7 abuild: include MAINTAINER in default abuild.conf
For the sake of completeness, include MAINTAINER as well as
PACKAGER to provide newapkbuild with comment metadata.
2015-06-04 11:53:06 +00:00
Natanael Copa cc43223da1 abuild.conf: default to musl 2014-06-20 08:36:27 +00:00
Natanael Copa 270de19535 abuild.conf: simplify. only set CHOST and let abuild detect the rest 2013-08-01 12:29:03 +00:00
Natanael Copa e2838fbb50 abuild: make it configurable what to cleanup and when
allow user specify if they want uninstall deps, remove srcdir and/or
pkgdir on failure or success.

We introduce CLEANUP and ERROR_CLEANUP config options in
/etc/abuild.conf. Valid values are: pkgdir srcdir deps.
2013-08-01 12:16:57 +00:00
Matt Smith 55af44f026 abuild.conf: updated comment about PACKAGER/newapkbuild 2011-04-14 00:24:43 -05:00
William Pitcock 66966c5ccc Add hints on CARCH/CBUILD for x86_64 and powerpc. 2011-02-09 16:36:19 -06:00
Natanael Copa 8f17e03078 abuild.conf: set CARCH and CBUILD 2010-11-24 08:08:51 +00:00
Natanael Copa 52534d4d51 abuild.conf: add ARCH and minor cleanup 2010-11-19 09:48:53 +00:00
Natanael Copa 9588629399 abuild.conf: added JOBS variable
makes it easier to support parallel builds on non gnu make system
2010-01-07 19:56:12 +00:00
Natanael Copa b529d81469 abuild.conf: added PACKAGER 2009-01-29 11:56:03 +00:00
Natanael Copa 200eb22b52 abuild: added REPODEST
This will let user specify a directory where the repositories are.
Setting REPODEST will override PKGDEST.
2009-01-22 09:08:50 +00:00
Natanael Copa 99f8ff1195 remove -fPIC from CFLAGS. added comments for SRC/PKGDEST 2008-11-27 17:45:48 +00:00
Natanael Copa a6241a05a4 fix bug in abuild cleanpkg. set default CHOST 2008-11-13 10:41:29 +00:00
Linux User d9f5462b34 use colors on messages 2008-11-08 11:05:45 +00:00
Natanael Copa 5a740569bc fixed faulty gcc flag. export MAKEFLAGS 2008-10-22 21:03:22 +00:00
Natanael Copa fdc478bde8 initial commit 2008-10-18 08:09:24 +00:00