# HG changeset patch # User greg # Date 1219928921 -7200 # Node ID 848da15cf51363bedd4532f19cbe8ebcb96717a7 # Parent 48c13b84505c19855f3677c9783c1b4680dc1b6b fixed : init_level bug remove -lrt in LDFLAG diff -r 48c13b84505c -r 848da15cf513 plugger.py --- a/plugger.py Thu Aug 28 14:53:11 2008 +0200 +++ b/plugger.py Thu Aug 28 15:08:41 2008 +0200 @@ -962,7 +962,7 @@ @param locations: ignored @return: [(C_file_name, CFLAGS),...] , LDFLAGS_TO_APPEND """ - return [(C_file_name, self.plcCFLAGS) for C_file_name in self.PLCGeneratedCFiles ] , "-lrt", False + return [(C_file_name, self.plcCFLAGS) for C_file_name in self.PLCGeneratedCFiles ] , "", False def ResetIECProgramsAndVariables(self): """ @@ -1125,7 +1125,7 @@ "publish_calls":"\n ".join([ #Call publish in reverse order "__publish_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]), "init_calls":"\n ".join([ - "init_level=%d; "%i+ + "init_level=%d; "%(i+1)+ "if(res = __init_%s(argc,argv)){"%locstr + #"printf(\"%s\"); "%locstr + #for debug "return res;}" for i,locstr in enumerate(locstrs)]),