# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1461349591 -10800
# Node ID 3a238c0c5993e1892809e9aee1bda32688e3001e
# Parent  62eb21aab1fbf484f3f79640644fe961dfe902b6
fix regression introduced by changeset: 1431:28e9d479aa65  [Use '-p' command line option when running matiec (iec2c)]

Variable matiec_flags in c_ext.py and PythonFileCTNMixin.py is not
used for flags for matiec (IEC to C compiler) actually, but it's used
to compile C-code generated for extensions using normal C-compiler,
like gcc.

diff -r 62eb21aab1fb -r 3a238c0c5993 c_ext/c_ext.py
--- a/c_ext/c_ext.py	Fri Apr 22 19:49:10 2016 +0300
+++ b/c_ext/c_ext.py	Fri Apr 22 21:26:31 2016 +0300
@@ -99,7 +99,7 @@
         cfile.write(text)
         cfile.close()
         
-        matiec_flags = '"-l -p -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
+        matiec_CFLAGS = '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
         
-        return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
+        return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_CFLAGS))],str(self.CExtension.getLDFLAGS()),True
 
diff -r 62eb21aab1fb -r 3a238c0c5993 py_ext/PythonFileCTNMixin.py
--- a/py_ext/PythonFileCTNMixin.py	Fri Apr 22 19:49:10 2016 +0300
+++ b/py_ext/PythonFileCTNMixin.py	Fri Apr 22 21:26:31 2016 +0300
@@ -258,10 +258,10 @@
         pycfile.write(PyCFileContent)
         pycfile.close()
 
-        matiec_flags = '"-l -p -I%s"'%os.path.abspath(
+        matiec_CFLAGS = '"-I%s"'%os.path.abspath(
             self.GetCTRoot().GetIECLibPath())
 
-        return ([(Gen_PyCfile_path, matiec_flags)],
+        return ([(Gen_PyCfile_path, matiec_CFLAGS)],
                 "",
                 True,
                 ("runtime_%s.py"%location_str, file(runtimefile_path,"rb")))