diff -uNr iverilog-10_2/driver/main.c iverilog-10_2.mod/driver/main.c
--- iverilog-10_2/driver/main.c	2017-08-24 18:22:49.000000000 +0300
+++ iverilog-10_2.mod/driver/main.c	2019-02-25 20:10:43.322593058 +0200
@@ -282,7 +282,7 @@
 	    tmpdir = "C:\\TEMP";
 #else
       if (tmpdir == 0)
-	    tmpdir = "/tmp";
+	    tmpdir = "@TERMUX_PREFIX@/tmp";
 #endif
 
       assert(tmpdir);
