emscripten-core / emscripten-core/emscripten

Does emcc support '-fstack-protector'? Error: 'undefined symbol: __stack_chk_guard'

Open
#17,030 1 comment 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

Please include the following in your bug report:

**Version of emscripten/emsdk:**
3.1.0
![image](https://user-images.githubusercontent.com/22173722/169978794-1cc866f4-8697-430f-b521-84a6425ed252.png)

**Failing command line in full:**
The compilation script compiles output WASM file and it can run on the web.
```
cmake ..
make
```
If i add `-fstack-protector` in CMakeLists.txt, There are some errors.

![image](https://user-images.githubusercontent.com/22173722/169979069-c4def4db-bc07-4ce3-bbd7-5cd24a8f5109.png)

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.