e68ed79390
Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly)
11 lines
125 B
Makefile
11 lines
125 B
Makefile
# $FreeBSD$
|
|
|
|
PROG?= ldd
|
|
SRCS= ldd.c
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
SRCS+= sods.c
|
|
.endif
|
|
WARNS?= 6
|
|
|
|
.include <bsd.prog.mk>
|