]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
For TSAN builds, use libraries from /opt/tsan
authorOndřej Surý <ondrej@isc.org>
Thu, 15 Aug 2024 17:54:58 +0000 (19:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 16 Aug 2024 06:08:51 +0000 (08:08 +0200)
The new TSAN images, the TSAN-enabled images install libraries to
/opt/tsan, synchronize the configure options and CFLAGS between gcc:tsan
and clang:tsan images and set the PKG_CONFIG_PATH to /opt/tsan/lib.

(cherry picked from commit 2a46396f295146b3868d89c8d8136fd3574579e5)

.gitlab-ci.yml

index 9cc03082e5c337157ddfc6a6cf08e558c41f2b12..e4acbd3983149fde3c57edff4fc00a35ef333b75 100644 (file)
@@ -802,9 +802,9 @@ gcc:tsan:
   <<: *build_job
   variables:
     CC: gcc
-    CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread -DISC_MEM_USE_INTERNAL_MALLOC=0"
+    CFLAGS: "${CFLAGS_COMMON} -Wno-stringop-overread -ggdb -O2 -fsanitize=thread -DISC_MEM_USE_INTERNAL_MALLOC=0"
     LDFLAGS: "-fsanitize=thread"
-    EXTRA_CONFIGURE: "--with-libidn2"
+    EXTRA_CONFIGURE: "--with-libidn2 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
 
 system:gcc:tsan:
   variables:
@@ -829,9 +829,9 @@ clang:tsan:
   <<: *build_job
   variables:
     CC: "${CLANG}"
-    CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread -DISC_MEM_USE_INTERNAL_MALLOC=0"
+    CFLAGS: "${CFLAGS_COMMON} -ggdb -O2 -fsanitize=thread -DISC_MEM_USE_INTERNAL_MALLOC=0"
     LDFLAGS: "-fsanitize=thread"
-    EXTRA_CONFIGURE: "--with-libidn2 --disable-warn-error"
+    EXTRA_CONFIGURE: "--with-libidn2 --disable-warn-error PKG_CONFIG_PATH=/opt/tsan/lib/pkgconfig"
 
 system:clang:tsan:
   variables: