1 # $NetBSD: Makefile,v 1.4.2.2.4.3 2009/12/23 03:14:47 mrg Exp $ 2 3 CPPFLAGS+= -DELFSIZE=64 4 LIB= ldd_elf64 5 6 # XXX Force one member 7 SRCS= dummy.c 8 9 LIBISPRIVATE= yes 10 .PATH: ${.CURDIR}/.. 11 12 .if ${MACHINE_ARCH:Mmips64*} != "" 13 ABI64:= ${CPUFLAGS:M-mabi=64:M-mabi=o64} 14 .endif 15 16 .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \ 17 (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \ 18 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") 19 20 # XXX we need to make sure that we don't accidentally get the elf32 21 # XXX versions of these. 22 23 RTLD_FUNCS = \ 24 _rtld_expand_path \ 25 _rtld_digest_dynamic \ 26 _rtld_digest_phdr \ 27 _rtld_load_needed_objects \ 28 _rtld_load_object \ 29 _rtld_map_object \ 30 _rtld_obj_free \ 31 _rtld_obj_new \ 32 _rtld_add_paths \ 33 _rtld_process_hints \ 34 _rtld_sysctl \ 35 _rtld_load_library 36 37 .for _d in ${RTLD_FUNCS} 38 CPPFLAGS+= -D${_d}=_elf64_${_d} 39 .endfor 40 41 .if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") 42 CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\" 43 .endif 44 45 .include "../Makefile.elf" 46 47 .endif 48 49 .include <bsd.lib.mk> 50