diff --git a/test/Makefile.am b/test/Makefile.am index 1345bd13..a6ff2af5 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -61,7 +61,8 @@ meshviewer_SOURCES = meshviewer.cpp \ shinymvtexture.lolfx shinyfur.lolfx mviewer_em_test.lolfx meshviewer_CPPFLAGS = $(AM_CPPFLAGS) meshviewer_DEPENDENCIES = @LOL_DEPS@ +meshviewer_LDFLAGS = $(AM_LDFLAGS) if USE_EMSCRIPTEN -meshviewer_LDFLAGS = $(AM_LDFLAGS) -s EXPORTED_FUNCTIONS="['_main', '_C_Send']" +meshviewer_LDFLAGS += -s EXPORTED_FUNCTIONS="['_main', '_C_Send']" endif