diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-03 17:49:45 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-05 14:26:02 -0800 |
commit | d91277e377d9dbbc87e7997db7059b30a3389bb2 (patch) | |
tree | cd6098acf7206560cc5d46cd357e5d8db1bd754d /config | |
parent | 10db7887ce0ff5e8323dc35176eaabbb3618e81c (diff) | |
download | crosstool-ng-d91277e377d9dbbc87e7997db7059b30a3389bb2.tar.gz crosstool-ng-d91277e377d9dbbc87e7997db7059b30a3389bb2.tar.bz2 crosstool-ng-d91277e377d9dbbc87e7997db7059b30a3389bb2.zip |
Add zlib as a companion lib
with version 1.2.11.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/binutils/binutils.in.2 | 4 | ||||
-rw-r--r-- | config/cc/gcc.in.2 | 3 | ||||
-rw-r--r-- | config/companion_libs.in | 6 | ||||
-rw-r--r-- | config/companion_libs/zlib.in | 19 |
4 files changed, 32 insertions, 0 deletions
diff --git a/config/binutils/binutils.in.2 b/config/binutils/binutils.in.2 index 7a1291f9..dfb00bd9 100644 --- a/config/binutils/binutils.in.2 +++ b/config/binutils/binutils.in.2 @@ -2,6 +2,10 @@ if ARCH_BINFMT_FLAT +config ELF2FLT_REQUIRES_ZLIB + def_bool y + select ZLIB + comment "elf2flt" choice diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 2c5d45e6..aad488b4 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -81,6 +81,9 @@ config CC_GCC_SYSTEM_ZLIB help Do not use bundled zlib, and use the zlib already available for the host (eg. the system library). + + If zlib is built as a companion library, selecting this option + will use it. If you want to build a static toolchain, you will need to also install the static version of zlib for your host. diff --git a/config/companion_libs.in b/config/companion_libs.in index 7d1d4f74..02f2ecb2 100644 --- a/config/companion_libs.in +++ b/config/companion_libs.in @@ -119,6 +119,12 @@ config NCURSES config NCURSES_TARGET bool +config ZLIB + bool "Build local zlib" + +if ZLIB +source "config/companion_libs/zlib.in" +endif if LIBICONV source "config/companion_libs/libiconv.in" endif diff --git a/config/companion_libs/zlib.in b/config/companion_libs/zlib.in new file mode 100644 index 00000000..df936823 --- /dev/null +++ b/config/companion_libs/zlib.in @@ -0,0 +1,19 @@ +# Zlib options + +choice + bool + prompt "zlib version" +# Don't remove next line +# CT_INSERT_VERSION_BELOW + +config ZLIB_V_1_2_11 + bool + prompt "1.2.11" + +endchoice + +config ZLIB_VERSION + string +# Don't remove next line +# CT_INSERT_VERSION_STRING_BELOW + default "1.2.11" if ZLIB_V_1_2_11 |