diff --git a/python/tvm/contrib/ndk.py b/python/tvm/contrib/ndk.py index bada95ff0cdd..66facae4e894 100644 --- a/python/tvm/contrib/ndk.py +++ b/python/tvm/contrib/ndk.py @@ -51,7 +51,7 @@ def create_shared(output, else: cmd += objects - options = options if options else ["-shared", "-fPIC"] + options = options if options else ["-shared", "-fPIC", "-lm"] cmd += options proc = subprocess.Popen(