emscripten-core / emscripten-core/emscripten

Option `-Wl,-R` not supported

Open
#24,049 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.