diff --git a/build/autotools/m4/lol-conf.m4 b/build/autotools/m4/lol-conf.m4 index 86209864..a55f560c 100644 --- a/build/autotools/m4/lol-conf.m4 +++ b/build/autotools/m4/lol-conf.m4 @@ -1,7 +1,7 @@ dnl dnl Lol Engine dnl -dnl Copyright © 2010—2019 Sam Hocevar +dnl Copyright © 2010—2020 Sam Hocevar dnl dnl Lol Engine is free software. It comes without any warranty, to dnl the extent permitted by applicable law. You can redistribute it @@ -213,7 +213,10 @@ LOL_AC_CHECK_FFMPEG() dnl Debug symbols -LOL_TRY_LDFLAGS(-rdynamic, [AM_LDFLAGS="${AM_LDFLAGS} -rdynamic"]) +dnl We use --export-dynamic instead of -rdynamic because the latter causes +dnl emscripten to emit wasm even when html is asked… +LOL_TRY_LDFLAGS(--export-dynamic, [AM_LDFLAGS="${AM_LDFLAGS} --export-dynamic"]) + dnl Code qui fait des warnings == code de porc == deux baffes dans ta gueule LOL_TRY_CXXFLAGS(-Wall, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wall"]) diff --git a/build/build-html b/build/build-html index 605666ca..c1dc83b7 100755 --- a/build/build-html +++ b/build/build-html @@ -4,7 +4,7 @@ make distclean set -e -./build/lol-build "$@" bootstrap web-html -./build/lol-build "$@" configure web-html -./build/lol-build "$@" build web-html +"$(dirname "$0")/lol-build" "$@" bootstrap web-html +"$(dirname "$0")/lol-build" "$@" configure web-html +"$(dirname "$0")/lol-build" "$@" build web-html