mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
bash: prevent aliasing of libc's 'getenv'
By default, bash brings its own version of 'getenv', named exactly like the libc function. This becomes a problem in fork/execve scenarios if the dynamic linker resolves 'getenv' to the bash binary instead of the libc. This patch fixes the generate step of the genodians.org scenario. Issue #3882
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
CONFIGURE_ARGS = --without-bash-malloc
|
||||
|
||||
#
|
||||
# Avoid aliasing with the libc 'getenv' to prevent the dynamic linker from
|
||||
# resolving libc-internal references to the bash binary, which causes
|
||||
# trouble for fork/execve.
|
||||
#
|
||||
CONFIGURE_ARGS += bash_cv_getenv_redef=no
|
||||
|
||||
CFLAGS += -Dsh_xfree=free
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user