]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't try and build the make support libraries if this is a WASM build... we'll figur...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Apr 2022 19:31:01 +0000 (14:31 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Apr 2022 20:32:25 +0000 (15:32 -0500)
It involves using two compilers in the build process, and as EMSCRIPTEN mostly uses static linking, using dlopen to figure out symbol presence probably isn't going to work.  We'll need some higher level function that execs the wasm linker like configure does.

Makefile

index 90c6ec9fd8213e5a3aa443e7481481d89b9905d4..711aec0d9a97d360d23271c91e528fee09c0ab8e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,7 @@ PROTOCOLS    := \
 ifneq "$(MAKECMDGOALS)" "deb"
 ifneq "$(MAKECMDGOALS)" "rpm"
 ifeq "$(findstring crossbuild,$(MAKECMDGOALS))" ""
+ifeq "$(findstring wasm,$(TARGET_SYSTEM))" ""
 #
 #  Include all of the autoconf definitions into the Make variable space
 #
@@ -124,6 +125,7 @@ else
 LIBRARY_EXT := so
 endif
 endif
+endif
 
 load build/lib/.libs/libfreeradius-make-dlopen.${LIBRARY_EXT}(dlopen_gmk_setup)
 load build/lib/.libs/libfreeradius-make-version.${LIBRARY_EXT}(version_gmk_setup)