diff --git a/libexec/rtld-elf/tests/target/Makefile b/libexec/rtld-elf/tests/target/Makefile index 0ae8c1d8b7b5..50161ad0ff35 100644 --- a/libexec/rtld-elf/tests/target/Makefile +++ b/libexec/rtld-elf/tests/target/Makefile @@ -6,7 +6,9 @@ PROG= target BINDIR= ${TESTSBASE}${TESTSDIR}/libexec/rtld-elf CFLAGS+= -I${.CURDIR}/../libpythagoras -LDADD= -L${.OBJDIR}/../libpythagoras -lpythagoras + +LDFLAGS+= -L${.OBJDIR}/../libpythagoras +LDADD= -lpythagoras MAN=