diff --git a/mace/examples/cli/BUILD b/mace/examples/cli/BUILD index 6599acaef82eb35f7fd2fe7435d1a81fc50c61e5..049b030bb00ad3f4c26740c83244ceaafc6302ef 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 e8339220d75874598b27cca39ecd27a5439f785f..ccde07e10a9823a78aa62b037096aac07d87a64d 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 = [