diff options
author | Paul Wolneykien <manowar@altlinux.org> | 2022-05-06 14:55:54 +0300 |
---|---|---|
committer | Robert Ancell <robert.ancell@gmail.com> | 2022-05-12 11:40:29 +1200 |
commit | 224b090ed78abbf43ca75f825dba78966c97c082 (patch) | |
tree | fada9c246dede9c52300eb10b88c35662ea2f601 | |
parent | cc0160667e8a3b132236a7bf5776c3865c481b7b (diff) | |
download | lightdm-git-224b090ed78abbf43ca75f825dba78966c97c082.tar.gz |
Disable compiler optimizations for test programs
Disable compiler optimizations for test programs as it is known to be
buggy with `LD_PRELOAD`.
In particular, `getgroups()` call in `request_cb()` callback of
`test-session` isn't overloaded by the corresponding function of
the test library `libsystem.so` via `LD_PRELOAD` resulting in
`test-group-membership` failure.
Signed-off-by: Paul Wolneykien <manowar@altlinux.org>
-rw-r--r-- | tests/src/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/Makefile.am b/tests/src/Makefile.am index 179f08da..8d684b19 100644 --- a/tests/src/Makefile.am +++ b/tests/src/Makefile.am @@ -1,3 +1,7 @@ +# Disable compiler optimizations for this section +# of programs as it is known to be buggy with LD_PRELOAD. +CFLAGS = @CFLAGS@ -O0 + noinst_PROGRAMS = dbus-env \ initctl \ plymouth \ |