diff --git a/ModFile.cc b/ModFile.cc
index 0695a53703ed11ccc7bac9a8fc9a3a2eb40d0ca6..42c829b84ccf4fbed6d6bafd5be313177d52e119 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -287,7 +287,8 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all
     mOutputFile << "options_.linear = 1;" << endl;
 
   mOutputFile << "options_.block=" << block << ";" << endl
-              << "options_.bytecode=" << byte_code << ";" << endl;
+              << "options_.bytecode=" << byte_code << ";" << endl
+              << "options_.use_dll=" << use_dll << ";" << endl;
 
   if (byte_code)
     mOutputFile << "if exist('bytecode') ~= 3" << endl