Closed Satancito closed 7 months ago
An alternative solution. Change value of EXE_LINK_CMD
variable in make command.
& make install EXE_LINK_CMD="/home/x/.emsdk/upstream/emscripten/em++"
Can you try the following patch?
diff --git a/src/build-data/cc/emcc.txt b/src/build-data/cc/emcc.txt
index ce7dc3205..11c562244 100644
--- a/src/build-data/cc/emcc.txt
+++ b/src/build-data/cc/emcc.txt
@@ -23,5 +23,5 @@ default -> "false"
</so_link_commands>
<binary_link_commands>
-default -> "em++"
+default -> "{cxx}"
</binary_link_commands>
I believe this is addressed now on master (and will be thus fixed in upcoming 3.3) using the patch above. Please reopen this issue if this patch does not resolve the issue.
Yes. I tried this patch.
Generated makefile
# Makefile for Botan 3.2.0 generated using
# 'configure.py --cpu=wasm --os=emscripten --cc=emcc --disable-shared-library --prefix=/mnt/c/Users/Megam/.CppLibs/Botan-3.2.0-Release-Emscripten-Full'
# Paths to relevant programs
CXX = /home/x/.emsdk/upstream/emscripten/em++
LINKER = /home/x/.emsdk/upstream/emscripten/em++
AR = /home/x/.emsdk/upstream/emscripten/emar
AR_OPTIONS = cr
PYTHON_EXE = /usr/bin/python
# Compiler Flags
ABI_FLAGS =
LANG_FLAGS = -s DISABLE_EXCEPTION_CATCHING=0 -std=c++20 -D_REENTRANT
LANG_EXE_FLAGS = -s ALLOW_MEMORY_GROWTH=1 -s WASM=1 -s NO_DISABLE_EXCEPTION_CATCHING
CXXFLAGS = -O3 -DBOTAN_IS_BEING_BUILT
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wshadow -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wshorten-64-to-32
LIB_FLAGS =
LDFLAGS =
EXE_LINK_CMD = /home/x/.emsdk/upstream/emscripten/em++
.
.
..
..
...
more content
No issues on install target.
Thanks Jack.
Configure command in powershell
prompt> & "/home/x/.emsdk/upstream/emscripten/emconfigure" python "$BOTAN_UNZIPPED_DIR/configure.py" $options $BotanOptions
Generated Makefile
libs target
prompt> make libs
All ok.cli target
Fix Sugestion Reuse CXX variable in Makefile. When run configure.py.
Change from "EXE_LINK_CMD"
To "CXX"
or change value in "EXE_LINK_CMD" to "CXX"