equal
deleted
inserted
replaced
49 |
49 |
50 def getBuilderCFLAGS(self): |
50 def getBuilderCFLAGS(self): |
51 """ |
51 """ |
52 Returns list of builder specific CFLAGS |
52 Returns list of builder specific CFLAGS |
53 """ |
53 """ |
54 return [self.CTRInstance.GetTarget().getcontent().getCFLAGS()] |
54 cflags = [self.CTRInstance.GetTarget().getcontent().getCFLAGS()] |
|
55 if os.environ.has_key("CFLAGS"): |
|
56 cflags.append(os.environ["CFLAGS"]) |
|
57 if os.environ.has_key("SYSROOT"): |
|
58 cflags.append("--sysroot="+os.environ["SYSROOT"]) |
|
59 return cflags |
55 |
60 |
56 def getBuilderLDFLAGS(self): |
61 def getBuilderLDFLAGS(self): |
57 """ |
62 """ |
58 Returns list of builder specific LDFLAGS |
63 Returns list of builder specific LDFLAGS |
59 """ |
64 """ |
60 return self.CTRInstance.LDFLAGS + \ |
65 ldflags = self.CTRInstance.LDFLAGS + \ |
61 [self.CTRInstance.GetTarget().getcontent().getLDFLAGS()] |
66 [self.CTRInstance.GetTarget().getcontent().getLDFLAGS()] |
|
67 if os.environ.has_key("LDLAGS"): |
|
68 ldflags.append(os.environ["LDLAGS"]) |
|
69 if os.environ.has_key("SYSROOT"): |
|
70 ldflags.append("--sysroot="+os.environ["SYSROOT"]) |
|
71 return ldflags |
62 |
72 |
63 def getCompiler(self): |
73 def getCompiler(self): |
64 """ |
74 """ |
65 Returns compiler |
75 Returns compiler |
66 """ |
76 """ |