aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2023-07-14 01:36:04 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2023-07-14 01:36:04 +0000
commit0a5e35a7b1811308bcb2aa2e6c7e7bd49dfc9770 (patch)
treeffef2bcee864fb91afbaf51893dee48f165999dc /Makefile.libcompat
parent587458b7d67a697c53fc2e31fb3407d1084fe773 (diff)
downloadsrc-0a5e35a7b1811308bcb2aa2e6c7e7bd49dfc9770.tar.gz
src-0a5e35a7b1811308bcb2aa2e6c7e7bd49dfc9770.zip
Makefile.libcompat: Be consistent about not installing includes
Currently we only pass MK_INCLUDES=no for distribute and install, since it's only in LIB${_LIBCOMPAT}IMAKE, which means that we enable includes during libraries and thus install includes into worldtmp, despite it being shared these days across native and libcompats. This also means we're at risk of having headers needed for building against a libcompat that don't get installed to the system, but do end up being installed to worldtmp. In particular, lib/msun has different fenv.h for aarch64 and arm, so aarch64 will need arm's copy when it grows lib32 support, and this would be installed to worldtmp, but not to the system, meaning any programs that use fenv.h wouldn't be able to be built. Instead, be consistent, and don't install includes at all during any of the libcompat phases, so that we can detect these issues and ensure any needed headers are installed for both worldtmp and the system. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D41030
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r--Makefile.libcompat2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat
index 72ea4d865647..e8d33b905559 100644
--- a/Makefile.libcompat
+++ b/Makefile.libcompat
@@ -38,10 +38,10 @@ LIB${_LIBCOMPAT}WMAKE+= ${TIME_ENV} ${LIB${_LIBCOMPAT}WMAKEENV} ${MAKE} \
OBJTOP=${LIB${_LIBCOMPAT}_OBJTOP} \
OBJROOT='$${OBJTOP}/' \
MAKEOBJDIRPREFIX= \
+ MK_INCLUDES=no \
MK_MAN=no MK_HTML=no
LIB${_LIBCOMPAT}IMAKE+= ${LIB${_LIBCOMPAT}WMAKE:NINSTALL=*:NDESTDIR=*} \
${IMAKE_INSTALL} \
- MK_INCLUDES=no \
-DLIBRARIES_ONLY
# Shared logic