Re: Regression tests fail with musl libc because libpq.so can't be loaded - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date
Msg-id 443430b4-0c10-49f3-8c8a-e5e76602f309@eisentraut.org
Whole thread Raw
In response to Re: Regression tests fail with musl libc because libpq.so can't be loaded  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Regression tests fail with musl libc because libpq.so can't be loaded  (Bruce Momjian <bruce@momjian.us>)
Re: Regression tests fail with musl libc because libpq.so can't be loaded  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-bugs
On 22.03.24 20:44, Bruce Momjian wrote:
> +                 * linking (dlopen) might fail.  Here, we truncate the update
> +                 * of the process title when either of two important dynamic
> +                 * linking environment variables are set.  Musl does not
> +                 * define any compiler symbols, so we have to do this for
> +                 * any Linux libc we don't know is safe.
> +                 */
> +                if (strstr(environ[i], "LD_LIBRARY_PATH=") == environ[i] ||
> +                    strstr(environ[i], "LD_PRELOAD=") == environ[i])

What determines which variables require this treatment?




pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Next
From: Bruce Momjian
Date:
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded