From 35be37e5fedd214e68dffa82fe73528f3e1696c7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 2 Sep 2026 22:54:19 +0200 Subject: [PATCH] Disable linktest when building for WASM --- exports/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exports/Makefile b/exports/Makefile index 6e79279157..c4633143bc 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -228,6 +228,7 @@ endif endif #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or +# WASM build also ends up here as it has no OSNAME set ifeq ($(OSNAME), $(filter $(OSNAME),OpenBSD NetBSD)) so : ../$(LIBSONAME) @@ -242,7 +243,9 @@ endif $(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \ -Wl,--whole-archive $< -Wl,--no-whole-archive \ $(FEXTRALIB) $(EXTRALIB) +ifneq ($(ARCH),wasm) $(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK. +endif rm -f linktest endif