mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 16:14:09 +00:00
enable option for binutils deterministic-archives
Signed-off-by: Norbert Lange <nolange79@gmail.com>
This commit is contained in:
parent
3f461da11f
commit
7469bc8a73
@ -156,6 +156,15 @@ config BINUTILS_RELRO
|
|||||||
Setting this option to 'M' configures binutils with their internal
|
Setting this option to 'M' configures binutils with their internal
|
||||||
default for the selected architecture.
|
default for the selected architecture.
|
||||||
|
|
||||||
|
config BINUTILS_DETERMINISTIC_ARCHIVES
|
||||||
|
bool
|
||||||
|
prompt "Enable deterministic archives by default" if BINUTILS_2_23_or_later
|
||||||
|
default y if BINUTILS_2_23_or_later
|
||||||
|
help
|
||||||
|
Setting this option will enable deterministic mode by default (-D).
|
||||||
|
ar and ranlib will use zero for UIDs, GIDs,
|
||||||
|
timestamps, and use consistent file modes for all files.
|
||||||
|
|
||||||
config BINUTILS_EXTRA_CONFIG_ARRAY
|
config BINUTILS_EXTRA_CONFIG_ARRAY
|
||||||
string
|
string
|
||||||
prompt "binutils extra config"
|
prompt "binutils extra config"
|
||||||
@ -206,7 +215,7 @@ config ELF2FLT_EXTRA_CONFIG_ARRAY
|
|||||||
default ""
|
default ""
|
||||||
help
|
help
|
||||||
Extra flags passed onto ./configure when configuring
|
Extra flags passed onto ./configure when configuring
|
||||||
|
|
||||||
You can enter multiple arguments here, and arguments can contain spaces
|
You can enter multiple arguments here, and arguments can contain spaces
|
||||||
if they are properly quoted (or escaped, but prefer quotes). Eg.:
|
if they are properly quoted (or escaped, but prefer quotes). Eg.:
|
||||||
--with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
|
--with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
|
||||||
|
@ -158,6 +158,9 @@ do_binutils_backend() {
|
|||||||
elif [ "${CT_BINUTILS_RELRO}" != "m" ]; then
|
elif [ "${CT_BINUTILS_RELRO}" != "m" ]; then
|
||||||
extra_config+=( --disable-relro )
|
extra_config+=( --disable-relro )
|
||||||
fi
|
fi
|
||||||
|
if [ "${CT_BINUTILS_DETERMINISTIC_ARCHIVES}" = "y" ]; then
|
||||||
|
extra_config+=( --enable-deterministic-archives )
|
||||||
|
fi
|
||||||
if [ "${CT_BINUTILS_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
if [ "${CT_BINUTILS_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
||||||
[ -n "${CT_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
[ -n "${CT_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||||
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user