From: Arran Cudbard-Bell Date: Sun, 28 May 2023 02:57:35 +0000 (-0500) Subject: jlibtool: Print environment in verbose mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61987bf765059555abf2407c9103dc611f0fcb1e;p=thirdparty%2Ffreeradius-server.git jlibtool: Print environment in verbose mode --- diff --git a/.clangd b/.clangd index b4b8e14862b..94ca9409424 100644 --- a/.clangd +++ b/.clangd @@ -38,7 +38,7 @@ CompileFlags: "-I/usr/local/include", "-D__clangd__" ] - # macos: flags that come from xcrun that brewd clangd doesn't understand + # macos: flags that come from xcrun that brewed clangd doesn't understand Remove: [ "-clang-vendor-feature*", "-fno-odr-hash-protocols*" diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index a82216b635f..a2606a8be06 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -34,6 +34,8 @@ #include #include +extern char **environ; + #ifndef FALL_THROUGH /** clang 10 doesn't recognised the FALL-THROUGH comment anymore */ @@ -870,6 +872,13 @@ static int external_spawn(command_t *cmd, __attribute__((unused)) char const *fi { if (!cmd->options.silent) { char const **argument = argv; + char **env_p = environ; + + while (*env_p) { + NOTICE("Environment: %s\n", *env_p); + env_p++; + } + NOTICE("Executing: "); while (*argument) { NOTICE("%s ", *argument);