From 69e3674c291b0bc770cebee56bd2b03a7549c2c0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 24 Nov 2014 17:19:55 -0800 Subject: [PATCH] Include the test pre.js script only for tests. --- configure.ac | 4 +++- test/default/Makefile.am | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7fa14d4a..59befcca 100644 --- a/configure.ac +++ b/configure.ac @@ -413,10 +413,12 @@ AC_CHECK_FUNCS([posix_memalign]) AC_SUBST([LIBTOOL_EXTRA_FLAGS]) -dnl Executables extension +TEST_LDFLAGS='' AS_IF([test "x$EMSCRIPTEN" != "x"],[ EXEEXT=.js + TEST_LDFLAGS='--pre-js pre.js' ]) +AC_SUBST(TEST_LDFLAGS) dnl Libtool. diff --git a/test/default/Makefile.am b/test/default/Makefile.am index 11d76e08..9434ac39 100644 --- a/test/default/Makefile.am +++ b/test/default/Makefile.am @@ -127,6 +127,8 @@ AM_CPPFLAGS = \ -I$(top_builddir)/src/libsodium/include/sodium \ -I$(top_srcdir)/test/quirks +AM_LDFLAGS = @TEST_LDFLAGS@ + TESTS_TARGETS = \ aead_chacha20poly1305 \ auth \