Makefile revision 1.11
1# $NetBSD: Makefile,v 1.11 2019/01/27 05:14:45 kre 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 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") 44CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\" 45.endif 46 47.include "../Makefile.elf" 48 49.endif 50 51.include <bsd.lib.mk> 52