mirror of git://sourceware.org/git/glibc.git
elf: Use +nolink-deps to add make-only dependency for tst-origin
The tst-origin test must link against liborigin-mod.so. Correct build order depends on a makefile rule dependency on $(objpfx)liborigin-mod.so. Use +nolink-deps to remvoe this dependency from the linker command line. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
c3410db9d0
commit
2f8e8c9cb7
|
@ -3452,8 +3452,11 @@ $(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
|
||||
$(objpfx)tst-origin.out: tst-origin.sh $(objpfx)liborigin-mod.so $(objpfx)tst-origin
|
||||
$(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
|
||||
$(SHELL) \
|
||||
$< \
|
||||
'$(common-objpfx)' \
|
||||
|
|
Loading…
Reference in New Issue