--- a/tools/tracer/tracer/tracer_linux.cpp
+++ b/tools/tracer/tracer/tracer_linux.cpp
@@ -40,6 +40,11 @@
     #error Unsupported architecture
 #endif
 
+#ifndef RTLD_DEEPBIND
+// musl neither defines nor can use RTLD_DEEPBIND
+    #define RTLD_DEEPBIND 0
+#endif
+
 static const char* g_mfxlib;
 static const char* g_mfxlib_in_dir;
 
