1# $NetBSD: Makefile,v 1.13 2021/04/25 23:52:59 christos Exp $ 2 3NOSANITIZER= # defined 4 5.include <bsd.own.mk> 6 7CPPFLAGS+= -DELFSIZE=64 8LIB= ldd_elf64 9 10# XXX Force one member 11SRCS= dummy.c 12 13LIBISPRIVATE= yes 14.PATH: ${.CURDIR}/.. 15 16.if ${OBJECT_FMTS:Melf64} != "" 17 18# XXX we need to make sure that we don't accidentally get the elf32 19# XXX versions of these. 20 21RTLD_FUNCS = \ 22 _rtld_expand_path \ 23 _rtld_digest_dynamic \ 24 _rtld_digest_phdr \ 25 _rtld_load_needed_objects \ 26 _rtld_load_object \ 27 _rtld_map_object \ 28 _rtld_obj_free \ 29 _rtld_obj_new \ 30 _rtld_object_add_name \ 31 _rtld_object_match_name \ 32 _rtld_add_paths \ 33 _rtld_process_hints \ 34 _rtld_sysctl \ 35 _rtld_tls_allocate \ 36 _rtld_tls_free \ 37 _rtld_load_library 38 39.for _d in ${RTLD_FUNCS} 40CPPFLAGS+= -D${_d}=_elf64_${_d} 41.endfor 42 43.if ${MKCOMPAT} != "no" 44. if ${MACHINE_MIPS64} 45CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\" 46. endif 47.endif 48 49.include "../Makefile.elf" 50 51.endif 52 53.include <bsd.lib.mk> 54