From ea21576eac257d6b012bbffb979a85901f50e3a5 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 6 Sep 2017 21:14:29 +0200 Subject: [PATCH] bash: make dependency from ld.lib.so explicit This patch is a workaround for the apparent problem that noux applications, which perform execve, implicitly use functionality from the dynamic linker, not explicitly via the libc. If the binary lacks the dependency information, noux will fail on the execve attempt. The latter is the case when the noux package is built as a depot archive where library dependencies are not traversed over multiple levels. --- repos/ports/recipes/src/bash/used_apis | 1 + repos/ports/src/noux-pkg/bash/target.mk | 2 ++ 2 files changed, 3 insertions(+) diff --git a/repos/ports/recipes/src/bash/used_apis b/repos/ports/recipes/src/bash/used_apis index 737e3c26a5..6abd7b790c 100644 --- a/repos/ports/recipes/src/bash/used_apis +++ b/repos/ports/recipes/src/bash/used_apis @@ -1,3 +1,4 @@ +base libc noux posix diff --git a/repos/ports/src/noux-pkg/bash/target.mk b/repos/ports/src/noux-pkg/bash/target.mk index a0506d6758..d0a23ff925 100644 --- a/repos/ports/src/noux-pkg/bash/target.mk +++ b/repos/ports/src/noux-pkg/bash/target.mk @@ -11,4 +11,6 @@ CFLAGS += -DNO_MAIN_ENV_ARG=1 # Prevent interactions with nonexisting tty driver CFLAGS += -DNO_TTY_DRIVER +LIBS += ld + include $(call select_from_repositories,mk/noux.mk)