You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2020/10/07 17:57:24 UTC
[incubator-tvm] branch master updated: [apps/bundle_deploy] Link
demo_* targets with LDFLAGS and also with -lm. (#6636)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/master by this push:
new 1c85047 [apps/bundle_deploy] Link demo_* targets with LDFLAGS and also with -lm. (#6636)
1c85047 is described below
commit 1c85047ce0d82a5bb421da57b3ba49454fc97dda
Author: Andrew Reusch <ar...@octoml.ai>
AuthorDate: Wed Oct 7 10:57:09 2020 -0700
[apps/bundle_deploy] Link demo_* targets with LDFLAGS and also with -lm. (#6636)
---
apps/bundle_deploy/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/bundle_deploy/Makefile b/apps/bundle_deploy/Makefile
index d95dbe7..c741e83 100644
--- a/apps/bundle_deploy/Makefile
+++ b/apps/bundle_deploy/Makefile
@@ -39,7 +39,7 @@ PKG_CFLAGS = ${PKG_COMPILE_OPTS} \
-I${TVM_ROOT}/3rdparty/dlpack/include \
-Icrt_config
-PKG_LDFLAGS = -pthread
+PKG_LDFLAGS = -pthread -lm
build_dir := build
@@ -92,7 +92,7 @@ $(build_dir)/test_dynamic: test.cc ${build_dir}/test_graph_c.json ${build_dir}/t
$(build_dir)/demo_static: demo_static.c ${build_dir}/bundle_static.o ${build_dir}/model_c.o ${build_dir}/crt/libgraph_runtime.a ${build_dir}/crt/libcommon.a ${build_dir}/graph_c.json.c ${build_dir}/params_c.bin.c $(BACKTRACE_OBJS)
$(QUIET)mkdir -p $(@D)
- $(QUIET)gcc $(PKG_CFLAGS) -o $@ $^ $(BACKTRACE_CFLAGS)
+ $(QUIET)gcc $(PKG_CFLAGS) -o $@ $^ $(PKG_LDFLAGS) $(BACKTRACE_LDFLAGS) $(BACKTRACE_CFLAGS)
$(build_dir)/test_static: test_static.c ${build_dir}/bundle_static.o ${build_dir}/test_model_c.o ${build_dir}/crt/libgraph_runtime.a ${build_dir}/crt/libcommon.a $(BACKTRACE_OBJS)
$(QUIET)mkdir -p $(@D)