I don't know if Emscripten has any special linking considerations, but the lsan interface header and its functions should always be available. The functions it defines just don't do anything if lsan isn't enabled.