We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--enable-lto
1 parent 3bfa3d1 commit a87ba46Copy full SHA for a87ba46
build.sh
@@ -170,6 +170,8 @@ export CXXFLAGS="$CFLAGS"
170
171
export LDFLAGS="$COMMON_FLAGS -L$TARGET/lib -sAUTO_JS_LIBRARIES=0 -sAUTO_NATIVE_LIBRARIES=0"
172
if [ "$WASM_BIGINT" = "true" ]; then export LDFLAGS+=" -sWASM_BIGINT"; fi
173
+# FIXME(kleisauke): Workaround for: https://github.com/emscripten-core/emscripten/issues/16836#issuecomment-1556187350
174
+if [ "$LTO" = "true" ]; then export LDFLAGS+=" -Wl,-u,htonl"; fi
175
176
# Build paths
177
export CPATH="$TARGET/include"
0 commit comments