I have the following output from ldconfig:
It's converted to the following path in cpp.systemRunPaths:
Which becomes an empty string in canonicalSystemRunPaths. "$ORIGIN" string also becomes an empty string when File.canonicalFilePath is applied. As the result isNotSystemRunPath function from gcc.js returns false, and such rpath from cpp.rpaths doesn't appear in a linker command line.