mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 21:44:34 +01:00
a7e13d50fe
Previously, librtld_db just hardcoded /libexec/ld-elf.so, which isn't correct for processes that aren't using the native ABI. With this change, librtld_db can be used to inspect non-native processes; in particular, dtrace -c now works for 32-bit executables on amd64. MFC after: 1 month
20 lines
308 B
Makefile
20 lines
308 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PACKAGE=lib${LIB}
|
|
LIB= rtld_db
|
|
SHLIB_MAJOR= 2
|
|
MAN= librtld_db.3
|
|
|
|
SRCS= rtld_db.c
|
|
INCS= rtld_db.h
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
# Avoid circular dependency, we only need the libproc.h header here.
|
|
CFLAGS+= -I${.CURDIR:H}/libproc
|
|
|
|
LIBADD+= elf procstat
|
|
|
|
.include <bsd.lib.mk>
|