]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add configure for libraries in /usr/local for the gcc:tsan job
authorOndřej Surý <ondrej@isc.org>
Tue, 6 Aug 2024 14:01:54 +0000 (16:01 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 7 Aug 2024 16:02:42 +0000 (16:02 +0000)
The TSAN-enabled libraries are installed to /usr/local, pass the
PKG_CONFIG_PATH and few other options to CFLAGS to the configure
arguments.

(cherry picked from commit ed766efc15da8b1ca3c597b5b53ab7e2bd331e85)

.gitlab-ci.yml

index b2a8f05c293786d7cfebf6c04227fbb77c2dc012..78d4fa8d88b8f9d788038f1eb8f4ba074e92e5c8 100644 (file)
@@ -1053,9 +1053,9 @@ unit:clang:asan:
 gcc:tsan:
   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 -Wl,-rpath=/usr/local/lib -Wl,--enable-new-dtags"
     LDFLAGS: "-fsanitize=thread"
-    EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock"
+    EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
   <<: *tsan_fedora_40_amd64_image
   <<: *build_job