binutils,gdb: fix providing companion libs prefix to configure scripts

Signed-off-by: Szymon Sobik <sobik.szymon@gmail.com>
This commit is contained in:
Szymon Sobik 2024-04-24 04:47:47 +02:00 committed by Chris Packham
parent 66d801f128
commit 2f904e4431
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@ do_binutils_for_build() {
binutils_opts+=( "host=${CT_BUILD}" )
binutils_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
binutils_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )
binutils_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" )
binutils_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" )
@ -62,6 +63,7 @@ do_binutils_for_host() {
binutils_opts+=( "host=${CT_HOST}" )
binutils_opts+=( "prefix=${CT_PREFIX_DIR}" )
binutils_opts+=( "complibs=${CT_HOST_COMPLIBS_DIR}" )
binutils_opts+=( "static_build=${CT_STATIC_TOOLCHAIN}" )
binutils_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
binutils_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" )
@ -108,6 +110,7 @@ do_binutils_for_host() {
# Parameter : description : type : default
# host : machine to run on : tuple : (none)
# prefix : prefix to install into : dir : (none)
# complibs : the companion libraries : dir : (none)
# static_build : build statcially : bool : no
# cflags : cflags to use : string : (empty)
# ldflags : ldflags to use : string : (empty)
@ -115,6 +118,7 @@ do_binutils_for_host() {
do_binutils_backend() {
local host
local prefix
local complibs
local static_build
local cflags
local ldflags

View File

@ -148,7 +148,7 @@ do_debug_gdb_build()
fi
if [ "${CT_COMP_LIBS_ZSTD}" = "y" ]; then
native_extra_config+=("--with-zstd=${complibs}")
native_extra_config+=("--with-zstd=${CT_HOST_COMPLIBS_DIR}")
else
native_extra_config+=("--without-zstd")
fi