summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/libexec/ld.so/dlopen/libac/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/regress/libexec/ld.so/dlopen/libac/Makefile b/regress/libexec/ld.so/dlopen/libac/Makefile
index 8aeef87649b..8102f02afc4 100644
--- a/regress/libexec/ld.so/dlopen/libac/Makefile
+++ b/regress/libexec/ld.so/dlopen/libac/Makefile
@@ -1,7 +1,16 @@
+.include <bsd.obj.mk>
+
+AA_DIR=${.CURDIR}/../libaa
+AA_OBJDIR!= if [ -d $(AA_DIR)/${__objdir} ]; then \
+ echo "$(AA_DIR)/${__objdir}"; \
+ else \
+ echo "$(AA_DIR)"; \
+ fi
+
LIB=ac
SRCS= ac.C
#CFLAGS=-I${.CURDIR}/../libaa
-LDADD=-L../libaa
+LDADD=-L$(AA_OBJDIR)
LDADD+=-laa
regress: all
.include <bsd.lib.mk>