kumquat-buildroot/toolchain
Jérôme Pouiller 76838f6341 reproducible: fix DATE/TIME macros in toolchain-wrapper
The use of the __DATE__ and __TIME__ macros are one of the most common
sources of non-reproducible binaries. In order to fix that, gcc 7 supports
the SOURCE_DATE_EPOCH variable:

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e3e8c48c4a494d9da741c1c8ea6c4c0b7c4ff934

This patch take advantage of toolchain-wrapper to provide support of
SOURCE_DATE_EPOCH to older gcc versions.

Function get_source_date_epoch() come directly from gcc git.

This work was sponsored by `BA Robotic Systems'.

[Peter: use sizeof for character array sizes, make function static,
	extend commit message, add upstream gcc commit]
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2017-02-07 21:45:01 +01:00
..
toolchain toolchain: extend musl workaround for recent kernels 2016-12-17 15:26:11 +01:00
toolchain-buildroot uclibc: allow to build aarch64 internal toolchain 2017-02-03 20:58:56 +01:00
toolchain-external toolchain-external: Update Synopsys prebuilt toolchain for ARC cores 2017-02-04 23:57:43 +01:00
Config.in
helpers.mk
toolchain-common.in
toolchain-wrapper.c reproducible: fix DATE/TIME macros in toolchain-wrapper 2017-02-07 21:45:01 +01:00
toolchain-wrapper.mk
toolchain.mk