git: d98193f093ea - stable/14 - ASan: Add asan_static to build

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Mon, 06 Nov 2023 02:43:45 UTC
The branch stable/14 has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=d98193f093ea4c4b44d22228f6ddd2abd80b339b

commit d98193f093ea4c4b44d22228f6ddd2abd80b339b
Author:     SHENG-YI HONG <aokblast@FreeBSD.org>
AuthorDate: 2023-11-03 07:02:26 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2023-11-06 02:43:18 +0000

    ASan: Add asan_static to build
    
    This is a partial fix for building with -DWITH_ASAN.
    
    Reviewed by:    Fangrui Song, dim, emaste
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D42388
    
    (cherry picked from commit 5c783a0b2826d1c6bbaa7d4b01a46d1dcdb39e8c)
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 01d3328726bd..4f564547bc84 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2994,6 +2994,7 @@ _prereq_libs+= lib/libssp_nonshared
 _prereq_libs+=	lib/libclang_rt/asan
 _prereq_libs+=	lib/libclang_rt/asan-preinit
 _prereq_libs+=	lib/libclang_rt/asan_cxx
+_prereq_libs+=	lib/libclang_rt/asan_static
 .endif
 .if ${MK_UBSAN} != "no"
 _prereq_libs+=	lib/libclang_rt/ubsan_minimal