From: Arran Cudbard-Bell Date: Wed, 27 Apr 2022 19:31:01 +0000 (-0500) Subject: Don't try and build the make support libraries if this is a WASM build... we'll figur... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=932bf41d78ab0c463446cdf46a8ac82812f0e2fc;p=thirdparty%2Ffreeradius-server.git Don't try and build the make support libraries if this is a WASM build... we'll figure this out later 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. --- diff --git a/Makefile b/Makefile index 90c6ec9fd82..711aec0d9a9 100644 --- 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)