emscripten
emscripten copied to clipboard
Option `-Wl,-R` not supported
The ld docs say that -R is the same as -rpath if the provided path is a directory:
-R FILE, --just-symbols FILE
Just link symbols (if directory, same as --rpath)
But it is a hard error on Emscripten:
$ echo 'int main(){ return 0; }' > a.c
$ gcc -Wl,-R/a/b a.c # works
$ clang -Wl,-R/a/b a.c # works
$ emcc -Wl,-R/a/b a.c # fails
wasm-ld: error: unknown argument: -R/a/b
Should be and easy enough wasm-ld fix if we want to support that. Do maybe users really use that flag instead of -rpath?
Would you mind filing a bug instead against wasm-ld in the llvm repo?