Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | make_ext.pl: fix regenerate makefile failed while $cc changed |
| 2 | |
| 3 | While $cc changed, the existance of 'xdefine' caused makefile |
| 4 | regeneration failed. |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 9 | --- |
| 10 | make_ext.pl | 4 ++++ |
| 11 | 1 file changed, 4 insertions(+) |
| 12 | |
| 13 | diff --git a/make_ext.pl b/make_ext.pl |
| 14 | index b433762..9fc1a36 100644 |
| 15 | --- a/make_ext.pl |
| 16 | +++ b/make_ext.pl |
| 17 | @@ -335,6 +335,10 @@ sub build_extension { |
| 18 | print "Deleting non-Cross makefile\n"; |
| 19 | close $mfh or die "close $makefile: $!"; |
| 20 | _unlink($makefile); |
| 21 | + if(-e 'xdefine') { |
| 22 | + print "Deleting xdefine for regenerate makefile\n"; |
| 23 | + _unlink('xdefine'); |
| 24 | + } |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | -- |
| 29 | 1.8.1.2 |
| 30 | |