diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2019-11-07 22:58:10 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2019-11-07 22:58:10 +0000 |
commit | a4330302f22d45d4158204b2d5d7c6738100f3a5 (patch) | |
tree | 9cb152bfad3e48051a626a02a237af9104e6929c /usr.bin/ldd32 | |
parent | 273b2e4c55f5de86ed5d2fea0a00677f944cbd9d (diff) | |
download | src-a4330302f22d45d4158204b2d5d7c6738100f3a5.tar.gz src-a4330302f22d45d4158204b2d5d7c6738100f3a5.zip |
libcompat: build 32-bit rtld and ldd as part of "everything"
Alter bsd.compat.mk to set MACHINE and MACHINE_ARCH when included
directly so MD paths in Makefiles work. In the process centralize
setting them in LIBCOMPATWMAKEENV.
Alter .PATH and CFLAGS settings in work when the Makefile is included.
While here only support LIB32 on supported platforms rather than always
enabling it and requiring users of MK_LIB32 to filter based
TARGET/MACHINE_ARCH.
The net effect of this change is to make Makefile.libcompat only build
compatability libraries.
Changes relative to r354449:
Correct detection of the compiler type when bsd.compat.mk is used
outside Makefile.libcompat. Previously it always matched the clang
case.
Set LDFLAGS including the linker emulation for mips where -m32 seems to
be insufficent.
Reviewed by: imp, kib (origional version in r354449)
Obtained from: CheriBSD (conceptually)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D22251
Notes
Notes:
svn path=/head/; revision=354491
Diffstat (limited to 'usr.bin/ldd32')
-rw-r--r-- | usr.bin/ldd32/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/ldd32/Makefile b/usr.bin/ldd32/Makefile new file mode 100644 index 000000000000..633947adeaa0 --- /dev/null +++ b/usr.bin/ldd32/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +NEED_COMPAT= 32 +.include <bsd.compat.mk> + +PROG= ldd32 +MAN= + +.PATH: ${SRCTOP}/usr.bin/ldd +.include "${SRCTOP}/usr.bin/ldd/Makefile" |