1LIB= c_rtld 2INTERNALLIB= 3INSTALL_PIC_ARCHIVE= 4NOPROFILE= 5STATIC_LOCALES= 6CFLAGS+=-I${.CURDIR}/../libc/include 7CFLAGS+=-I${.CURDIR}/../libc/resolv 8CFLAGS+=-I${.CURDIR}/../libc/rpc 9CFLAGS+=-I${.CURDIR}/../../include 10CFLAGS+=-I${.CURDIR}/../libc/${MACHINE_ARCH} 11CFLAGS+=-I${.OBJDIR} 12CFLAGS+=-D__thread= 13CFLAGS+=-D__LIBC_RTLD 14 15PRECIOUSLIB= yes 16 17# 18# This is a list of syscalls that are renamed as __sys_{syscall} 19# so that libc_rtld can provide replacement functions. 20# 21HIDDEN_SYSCALLS= aio_suspend.o accept.o bind.o close.o connect.o dup.o dup2.o \ 22 execve.o fchflags.o fchmod.o fchown.o fcntl.o \ 23 flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \ 24 getlogin.o getpeername.o getsockname.o getsockopt.o ioctl.o \ 25 kevent.o kqueue.o listen.o \ 26 msync.o nanosleep.o open.o poll.o read.o readv.o recvfrom.o \ 27 recvmsg.o sched_yield.o select.o sendfile.o sendmsg.o sendto.o \ 28 setsockopt.o shutdown.o sigaction.o \ 29 sigpending.o sigprocmask.o \ 30 sigsuspend.o sigtimedwait.o sigwaitinfo.o socket.o \ 31 socketpair.o wait4.o write.o writev.o 32 33# 34# Include make rules that are shared with libc. 35# 36.include "${.CURDIR}/../libc/Makefile.inc" 37 38.PATH: ${.CURDIR}/../libc/inet 39.PATH: ${.CURDIR}/../libc/isc 40.PATH: ${.CURDIR}/../libc/nameser 41.PATH: ${.CURDIR}/../libc/resolv 42 43.include <bsd.lib.mk> 44 45# Disable warnings in contributed sources. 46CWARNFLAGS:= ${.IMPSRC:N*dtoa*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/} 47