# define WITH_VERIFY_PTR 1
#endif
+/*
+ * GCC uses __SANITIZE_ADDRESS__, clang uses __has_feature, which
+ * GCC complains about.
+ */
+#ifndef __SANITIZE_ADDRESS__
+#ifdef __has_feature
+#if __has_feature(address_sanitizer)
+#define __SANITIZE_ADDRESS__ (1)
+#endif
+#endif
+#endif
+
/*
* The ubiquitous stringify macros
*/
#endif
);
-/*
- * GCC uses __SANITIZE_ADDRESS__, clang uses __has_feature, which
- * GCC complains about.
- */
-#ifndef __SANITIZE_ADDRESS__
-#ifdef __has_feature
-#if __has_feature(address_sanitizer)
-#define __SANITIZE_ADDRESS__ (1)
-#endif
-#endif
-#endif
-
dependency_feature_add(cs, "address-sanitizer",
#ifdef __SANITIZE_ADDRESS__
true
*
* May help resolve issues with symbol conflicts.
*/
-#ifdef RTLD_DEEPBIND
- if (fr_get_lsan_state() != 1) {
- flags |= RTLD_DEEPBIND;
- fr_strerror(); /* clear error buffer */
- }
+#if defined(RTLD_DEEPBIND) && !defined(__SANITIZE_ADDRESS__)
+ flags |= RTLD_DEEPBIND;
+ fr_strerror(); /* clear error buffer */
#endif
/*