bash: Fix build
This commit is contained in:
+10
-7
@@ -1,28 +1,31 @@
|
||||
version = "5.2.32"
|
||||
version = "5.3"
|
||||
revision = 1
|
||||
description = "GNU Bourne-Again SHell"
|
||||
license = "GPL-3.0-or-later"
|
||||
url = "https://www.gnu.org/software/bash/"
|
||||
source = tarball(
|
||||
url=f"https://ftp.gnu.org/gnu/bash/bash-{version}.tar.gz",
|
||||
sha256="d3ef80d2b67d8cbbe4d3265c63a72c46f9b278ead6e0e06d61801b58f23f50b5",
|
||||
sha256="0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba",
|
||||
)
|
||||
host_deps = ["autoconf", "automake", "binutils", "gcc"]
|
||||
deps = [profile["libc"], "ncurses", "readline"]
|
||||
|
||||
build_if = False # TODO: Doesn't build yet
|
||||
|
||||
configure, build, install = autotools(
|
||||
configure_args=[
|
||||
"--without-bash-malloc",
|
||||
"--disable-nls",
|
||||
"--with-installed-readline",
|
||||
"--with-curses",
|
||||
"--enable-readline",
|
||||
"--with-installed-readline=/sysroot/usr", # TODO: get /sysroot from context
|
||||
"--with-installed-readline",
|
||||
],
|
||||
configure_env={
|
||||
"bash_cv_termcap_lib": "libtinfo",
|
||||
"CFLAGS": profile["cflags"] + " -std=gnu17",
|
||||
"CFLAGS_FOR_BUILD": profile["cflags"] + " -std=gnu17",
|
||||
"CFLAGS_FOR_BUILD": profile["host_cflags"] + " -std=gnu17",
|
||||
},
|
||||
# HACK: Fixes cross-compile issues
|
||||
build_args=[
|
||||
"READLINE_LDFLAGS=-L=/usr/lib",
|
||||
"HISTORY_LDFLAGS=-L=/usr/lib",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user