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