summaryrefslogtreecommitdiff
path: root/tests/libexec/ld.elf_so/helper_use_dynamic
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2023-07-05 22:42:46 +0000
committerriastradh <riastradh@NetBSD.org>2023-07-05 22:42:46 +0000
commitde50cbf6aea57f5b2137debdf64112e4bf9ce2a0 (patch)
tree8ab8bc754d6626de4a1c37aae6fd5b558fde6b5f /tests/libexec/ld.elf_so/helper_use_dynamic
parent5b7fb2cc0bc1e6d8ed360dca3fac918bee6f189f (diff)
tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication. 2. Set NO* variables, not MK* variables which are reserved for user. 3. Avoid eager X!= in favour of lazy ${X:sh}. 4. Mark _g.a set list entries obsolete. Never should've been built! PR misc/57462
Diffstat (limited to 'tests/libexec/ld.elf_so/helper_use_dynamic')
-rw-r--r--tests/libexec/ld.elf_so/helper_use_dynamic/Makefile20
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/libexec/ld.elf_so/helper_use_dynamic/Makefile b/tests/libexec/ld.elf_so/helper_use_dynamic/Makefile
index e7815dee077..646693dc868 100644
--- a/tests/libexec/ld.elf_so/helper_use_dynamic/Makefile
+++ b/tests/libexec/ld.elf_so/helper_use_dynamic/Makefile
@@ -1,22 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2023/06/01 20:50:19 riastradh Exp $
-
-.include <bsd.own.mk>
+# $NetBSD: Makefile,v 1.2 2023/07/05 22:42:48 riastradh Exp $
LIB= h_use_dynamic
SRCS= h_use_dynamic.c
-DEF_DIR!= cd ${.CURDIR}/../helper_def_dynamic && ${PRINTOBJDIR}
+DEF_DIR_cmd= cd ${.CURDIR}/../helper_def_dynamic && ${PRINTOBJDIR}
+DEF_DIR= ${DEF_DIR_cmd:sh}
LDADD+= -Wl,-rpath,${TESTSDIR} -L${DEF_DIR} -lh_def_dynamic
-LIBDIR= ${TESTSBASE}/libexec/ld.elf_so
-SHLIBDIR= ${TESTSBASE}/libexec/ld.elf_so
-SHLIB_MAJOR= 1
-
-MKSTATICLIB= no
-MKPROFILE= no
-MKPICINSTALL= no
-MKLINT= no
-
-NOMAN= # defined
-
-.include <bsd.lib.mk>
+.include "../helper.mk"