From 387d233477f037157a0a77981d7e6b437d5e84a6 Mon Sep 17 00:00:00 2001 From: yejianwu Date: Fri, 10 Aug 2018 16:14:07 +0800 Subject: [PATCH] static link omp into libmace.so --- mace/examples/cli/BUILD | 4 +--- mace/libmace/BUILD | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mace/examples/cli/BUILD b/mace/examples/cli/BUILD index 6599acae..049b030b 100644 --- a/mace/examples/cli/BUILD +++ b/mace/examples/cli/BUILD @@ -47,9 +47,7 @@ cc_binary( ]), linkopts = [ "-lm", - ] + if_openmp_enabled([ - "-fopenmp" - ]) + if_android([ + ] + if_android([ "-ldl", "-pie", "-llog", diff --git a/mace/libmace/BUILD b/mace/libmace/BUILD index e8339220..ccde07e1 100644 --- a/mace/libmace/BUILD +++ b/mace/libmace/BUILD @@ -50,7 +50,9 @@ cc_binary( "-Wl,-soname,libmace.so", "-Wl,--version-script", "mace_version_script.lds", - ], + ] + if_openmp_enabled([ + "-fopenmp", + ]), linkshared = 1, linkstatic = 1, deps = [ -- GitLab