diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2025-03-31 13:48:32 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-31 16:01:16 -0300 |
commit | 38c3896d574a27816caab0b5039402834ecdb210 (patch) | |
tree | fca2c0daa2910df103a8a2060a938fd6b82603db | |
parent | 27b96e069aad17cefea9437542180bff448ac3a0 (diff) | |
download | glibc-38c3896d574a27816caab0b5039402834ecdb210.zip glibc-38c3896d574a27816caab0b5039402834ecdb210.tar.gz glibc-38c3896d574a27816caab0b5039402834ecdb210.tar.bz2 |
elf: Fix tst-origin build when toolchain defaults to --as-needed (BZ 32823)
Checked on aarch64-linux-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
-rw-r--r-- | elf/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index 1282a5b..250348c 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -3453,7 +3453,8 @@ $(objpfx)tst-dlopen-constructor-null-mod2.so: \ CFLAGS-tst-origin.c += $(no-stack-protector) CFLAGS-liborigin-mod.c += $(no-stack-protector) # Link tst-origin with liborigin-mod.so, but without a full path. -LDFLAGS-tst-origin += -Wl,-rpath,\$$ORIGIN -L$(subst :, -L,$(rpath-link)) -lorigin-mod +LDFLAGS-tst-origin += -Wl,-rpath,\$$ORIGIN -L$(subst :, -L,$(rpath-link)) +LDLIBS-tst-origin += -lorigin-mod $(objpfx)tst-origin: +nolink-deps += $(objpfx)liborigin-mod.so $(objpfx)tst-origin: $(objpfx)liborigin-mod.so $(objpfx)tst-origin.out: tst-origin.sh $(objpfx)tst-origin |