mirror of git://sourceware.org/git/glibc.git
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>
This commit is contained in:
parent
27b96e069a
commit
38c3896d57
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue