Add command line option '-l' when calling matiec
authormjsousa
Wed, 26 Nov 2014 16:05:14 +0000
changeset 1473 23045c351012
parent 1472 144cf3af992c
child 1474 28e9d479aa65
Add command line option '-l' when calling matiec
ProjectController.py
c_ext/c_ext.py
py_ext/PythonFileCTNMixin.py
--- a/ProjectController.py	Wed Nov 12 17:36:27 2014 +0000
+++ b/ProjectController.py	Wed Nov 26 16:05:14 2014 +0000
@@ -614,7 +614,7 @@
         # files are listed to stdout, and errors to stderr.
         status, result, err_result = ProcessLogger(
                self.logger,
-               "\"%s\" -f -I \"%s\" -T \"%s\" \"%s\""%(
+               "\"%s\" -f -l -I \"%s\" -T \"%s\" \"%s\""%(
                          self.iec2c_path,
                          self.ieclib_path,
                          buildpath,
--- a/c_ext/c_ext.py	Wed Nov 12 17:36:27 2014 +0000
+++ b/c_ext/c_ext.py	Wed Nov 26 16:05:14 2014 +0000
@@ -99,7 +99,7 @@
         cfile.write(text)
         cfile.close()
         
-        matiec_flags = '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
+        matiec_flags = '"-l -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
         
         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
 
--- a/py_ext/PythonFileCTNMixin.py	Wed Nov 12 17:36:27 2014 +0000
+++ b/py_ext/PythonFileCTNMixin.py	Wed Nov 26 16:05:14 2014 +0000
@@ -214,7 +214,7 @@
         pycfile.write(PyCFileContent)
         pycfile.close()
         
-        matiec_flags = '"-I%s"'%os.path.abspath(
+        matiec_flags = '"-l -I%s"'%os.path.abspath(
             self.GetCTRoot().GetIECLibPath())
         
         return ([(Gen_PyCfile_path, matiec_flags)],