# HG changeset patch
# User mjsousa
# Date 1417894311 0
# Node ID 28e9d479aa654d335290f72247abaa1358aa7afa
# Parent  23045c351012fdd00ca12c8bd11c47b3d760c86c
Use '-p' command line option when running matiec (iec2c)

diff -r 23045c351012 -r 28e9d479aa65 ProjectController.py
--- a/ProjectController.py	Wed Nov 26 16:05:14 2014 +0000
+++ b/ProjectController.py	Sat Dec 06 19:31:51 2014 +0000
@@ -614,7 +614,7 @@
         # files are listed to stdout, and errors to stderr.
         status, result, err_result = ProcessLogger(
                self.logger,
-               "\"%s\" -f -l -I \"%s\" -T \"%s\" \"%s\""%(
+               "\"%s\" -f -l -p -I \"%s\" -T \"%s\" \"%s\""%(
                          self.iec2c_path,
                          self.ieclib_path,
                          buildpath,
diff -r 23045c351012 -r 28e9d479aa65 c_ext/c_ext.py
--- a/c_ext/c_ext.py	Wed Nov 26 16:05:14 2014 +0000
+++ b/c_ext/c_ext.py	Sat Dec 06 19:31:51 2014 +0000
@@ -99,7 +99,7 @@
         cfile.write(text)
         cfile.close()
         
-        matiec_flags = '"-l -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
+        matiec_flags = '"-l -p -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
         
         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
 
diff -r 23045c351012 -r 28e9d479aa65 py_ext/PythonFileCTNMixin.py
--- a/py_ext/PythonFileCTNMixin.py	Wed Nov 26 16:05:14 2014 +0000
+++ b/py_ext/PythonFileCTNMixin.py	Sat Dec 06 19:31:51 2014 +0000
@@ -214,7 +214,7 @@
         pycfile.write(PyCFileContent)
         pycfile.close()
         
-        matiec_flags = '"-l -I%s"'%os.path.abspath(
+        matiec_flags = '"-l -p -I%s"'%os.path.abspath(
             self.GetCTRoot().GetIECLibPath())
         
         return ([(Gen_PyCfile_path, matiec_flags)],