diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-11-04 08:00:00 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2020-11-09 14:27:37 +0100 |
commit | 911ac29b9eed3c66bba60eda6af8e5de62607e5c (patch) | |
tree | 2fff5f4b60f62b74717245a556b55ce6cac89e23 /config/profile.sh.in | |
parent | f36411d0eecf5e9b3b637bf6c4024db422a13ec3 (diff) | |
download | elfutils-911ac29b9eed3c66bba60eda6af8e5de62607e5c.tar.gz |
config: do not define DEBUGINFOD_URLS environment variable unnecessarily
Before this change, when elfutils was configured without
--enable-debuginfod-urls, the installed profile.d/debuginfod.sh and
profile.d/debuginfod.csh scripts used to define the DEBUGINFOD_URLS
environment variable as an non-empty string containing spaces, making
all libdebuginfod users do extra work.
Change these scripts to avoid defining the DEBUGINFOD_URLS environment
variable unless configured using --enable-debuginfod-urls.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'config/profile.sh.in')
-rw-r--r-- | config/profile.sh.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/profile.sh.in b/config/profile.sh.in index 8a022489..aa228a0d 100644 --- a/config/profile.sh.in +++ b/config/profile.sh.in @@ -1,3 +1,4 @@ - -DEBUGINFOD_URLS="$DEBUGINFOD_URLS @DEBUGINFOD_URLS@" -export DEBUGINFOD_URLS +if [ -n "@DEBUGINFOD_URLS@" ]; then + DEBUGINFOD_URLS="${DEBUGINFOD_URLS-}${DEBUGINFOD_URLS:+ }@DEBUGINFOD_URLS@" + export DEBUGINFOD_URLS +fi |