summaryrefslogtreecommitdiff
path: root/regress/libexec/ld.so/elf/foo/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2002-02-05 21:47:24 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2002-02-05 21:47:24 +0000
commited90c0e4e0768b03510effce8ed828b7a9d68229 (patch)
tree12cffbd57b18eb59981edeb903abe9bdda363568 /regress/libexec/ld.so/elf/foo/Makefile
parent5e1c2eca83eecf97c4a3b07cfa7ed3c2b84929d5 (diff)
add a regression for test for "elfbug": the bug in ELF ld.so
that cause the 'Unresolved inheritance operation' error message.
Diffstat (limited to 'regress/libexec/ld.so/elf/foo/Makefile')
-rw-r--r--regress/libexec/ld.so/elf/foo/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/regress/libexec/ld.so/elf/foo/Makefile b/regress/libexec/ld.so/elf/foo/Makefile
new file mode 100644
index 00000000000..36802992ead
--- /dev/null
+++ b/regress/libexec/ld.so/elf/foo/Makefile
@@ -0,0 +1,22 @@
+# $OpenBSD: Makefile,v 1.1 2002/02/05 21:47:23 matthieu Exp $
+
+BAR_DIR=${.CURDIR}/../libbar
+
+.if defined(OBJMACHINE)
+OBJDIR= obj.${MACHINE}
+.else
+OBJDIR= obj
+.endif
+
+BAR_OBJDIR!= if [ -d $(BAR_DIR)/$(OBJDIR) ]; then \
+ echo $(BAR_DIR)/$(OBJDIR); \
+ else \
+ echo $(BAR_DIR); \
+ fi
+
+PROG= elfbug
+SRCS= main.c
+CPPFLAGS+= -I${.CURDIR}/..
+LDADD= -Wl,-rpath,$(BAR_OBJDIR) -L$(BAR_OBJDIR) -lbar
+
+.include <bsd.regress.mk>