link the math library by default (#4713)
authorZhigao <wuzhigaoem@163.com>
Wed, 15 Jan 2020 06:26:09 +0000 (14:26 +0800)
committerTianqi Chen <tqchen@users.noreply.github.com>
Wed, 15 Jan 2020 06:26:09 +0000 (22:26 -0800)
python/tvm/contrib/ndk.py

index bada95f..66facae 100644 (file)
@@ -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(