From 07fc08c1981850435c197388668462c74b758b97 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 9 Sep 2013 15:09:24 +0000 Subject: [PATCH] build: more emscripten build fixes. --- test/Makefile.am | 3 ++- test/btphystest.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 1526c577..721449c2 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -43,8 +43,9 @@ btphystest_SOURCES = \ btphystest_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/bullet \ -DHAVE_PHYS_USE_BULLET btphystest_DEPENDENCIES = @LOL_DEPS@ +btphystest_LDFLAGS = $(AM_LDFLAGS) if USE_EMSCRIPTEN -btphystest_LDFLAGS = --preload-file data/CatsSheet.png +btphystest_LDFLAGS += --preload-file data endif meshviewer_SOURCES = meshviewer.cpp \ diff --git a/test/btphystest.cpp b/test/btphystest.cpp index edcb35c4..ac0610ef 100644 --- a/test/btphystest.cpp +++ b/test/btphystest.cpp @@ -21,7 +21,7 @@ using namespace lol; #include "physics/lolphysics.h" #include "physics/easyphysics.h" -#define CAT_MODE 0 +#define CAT_MODE 1 #define OBJ_SIZE 2.f #include "physicobject.h"