]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 337270: Install the 32-bit compat sanitizer libraries.
authorjhb <jhb@FreeBSD.org>
Thu, 20 Sep 2018 16:43:58 +0000 (16:43 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 20 Sep 2018 16:43:58 +0000 (16:43 +0000)
commit0e9007a90e62bcf14c17c5cdfb942e2437a534e3
treeca1021a4243b92832d04aa33c9fc320789498f46
parent85012f82112d6062b2c4179c5ae9734275f4c480
MFC 337270: Install the 32-bit compat sanitizer libraries.

The lib32 build was already building the i386 version of
the clang sanitizers (libclang_rt) but they were not being
installed.  This enables the installation.

MK_TOOLCHAIN=no was originally added to the install make
environment to disable includes so that NO_INCS could be
removed.  The MK_TOOLCHAIN in bsd.incs.mk was subsequently
renamed to MK_INCLUDES, but bsd.lib.mk doesn't even include
bsd.incs.mk when LIBRARIES_ONLY is defined which the install
make environment for compat libs now defines.  However,
setting MK_TOOLCHAIN=no forced MK_CLANG=no which disabled
libclang_rt during the install32 phase.  Remove MK_TOOLCHAIN=no
since LIBRARIES_ONLY is now sufficient.

Since the libcompat environment overrides both LIBDIR and
SHLIBDIR, libclang_rt/Makefile.inc has to set both variables
to force the libraries to be installed to the location
expected by the compiler.
Makefile.libcompat
lib/libclang_rt/Makefile.inc