summaryrefslogtreecommitdiff
path: root/regress/libexec/ld.so/edgecases/test2/prog1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'regress/libexec/ld.so/edgecases/test2/prog1/Makefile')
-rw-r--r--regress/libexec/ld.so/edgecases/test2/prog1/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/regress/libexec/ld.so/edgecases/test2/prog1/Makefile b/regress/libexec/ld.so/edgecases/test2/prog1/Makefile
new file mode 100644
index 00000000000..893fe6cae64
--- /dev/null
+++ b/regress/libexec/ld.so/edgecases/test2/prog1/Makefile
@@ -0,0 +1,22 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2005/09/23 18:58:07 kurt Exp $
+
+.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
+
+PROG= prog1
+SRCS= main.c
+LDFLAGS+= -Wl,-E
+LDFLAGS+= -Wl,-rpath,$(AA_OBJDIR)
+
+run-regress-${PROG}: ${PROG}
+ ./${PROG}
+ ! ./${PROG} 2>&1 | grep unresolvedWeakSymbol
+
+.include <bsd.regress.mk>