[PATCH v4 5/9] Makeconfig: Add a sampling-asan directory to the build script
Sung-hun Kim
sfoon.kim@samsung.com
Thu Nov 6 02:26:12 GMT 2025
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
---
Makeconfig | 10 ++++++++--
shlib-versions | 4 ++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makeconfig b/Makeconfig
index eb44bbd113..f028e2b1c8 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -637,7 +637,7 @@ link-libc-printers-tests = $(link-libc-rpath) \
$(link-libc-tests-after-rpath-link)
# This is how to find at build-time things that will be installed there.
-rpath-dirs = math elf dlfcn nss nis rt resolv mathvec support misc debug
+rpath-dirs = math elf dlfcn nss nis rt resolv mathvec support misc debug sampling-asan
rpath-link = \
$(common-objdir):$(subst $(empty) ,:,$(patsubst ../$(subdir),.,$(rpath-dirs:%=$(common-objpfx)%))):$(gnulib-extralibdir)
else # build-static
@@ -1404,6 +1404,12 @@ else
libsupport = $(common-objpfx)support/libsupport.a
endif
+ifeq ($(build-shared),yes)
+libsamasan = $(common-objpfx)sampling-asan/libsamasan.so$(libsamasan.so-version)
+else
+libsamasan = $(common-objpfx)sampling-asan/libsamasan.a
+endif
+
# This is a partial list of subdirectories containing the library source.
# The order is more or less arbitrary. The sorting step will take care of the
# dependencies and generate sorted-subdirs dynamically.
@@ -1412,7 +1418,7 @@ all-subdirs = csu assert ctype locale intl catgets math setjmp signal \
posix io termios resource misc socket sysvipc gmon \
gnulib iconv iconvdata wctype manual po argp \
localedata timezone rt conform debug mathvec support \
- dlfcn elf
+ dlfcn elf sampling-asan
ifndef avoid-generated
# sysd-sorted itself will contain rules making the sysd-sorted target
diff --git a/shlib-versions b/shlib-versions
index b1fd0a5eab..0d7b76c9d1 100644
--- a/shlib-versions
+++ b/shlib-versions
@@ -68,3 +68,7 @@ libmvec=1
# The malloc debug library
libc_malloc_debug=0
+
+# The sampling-asan library
+libsamasan=0
+
--
2.25.1
More information about the Libc-alpha
mailing list