1 2PACKAGE=clibs 3LIB=dl 4SHLIB_MAJOR=1 5 6.PATH: ${SRCTOP}/lib/libc/gen 7CFLAGS+=-I${SRCTOP}/lib/libc/include 8RTLD_ELF_DIR=${SRCTOP}/libexec/rtld-elf 9.if exists(${RTLD_ELF_DIR}/${MACHINE_ARCH:S/powerpc64le/powerpc64/}) 10RTLD_ARCH= ${MACHINE_ARCH:S/powerpc64le/powerpc64/} 11.else 12RTLD_ARCH= ${MACHINE_CPUARCH} 13.endif 14CFLAGS+= -I${RTLD_ELF_DIR}/${RTLD_ARCH} -I${RTLD_ELF_DIR} 15CFLAGS+=-DIN_LIBDL 16LDFLAGS+=-Wl,-F,libc.so.7 17VERSION_DEF=${SRCTOP}/lib/libc/Versions.def 18SYMBOL_MAPS=${.CURDIR}/Symbol.map 19 20SRCS = dlfcn.c 21 22.include <bsd.lib.mk> 23