diff options
Diffstat (limited to 'android/build/mkdeps.sh')
-rwxr-xr-x | android/build/mkdeps.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/android/build/mkdeps.sh b/android/build/mkdeps.sh index 2d25ca3..abecec7 100755 --- a/android/build/mkdeps.sh +++ b/android/build/mkdeps.sh @@ -40,9 +40,12 @@ OBJECT=`echo $1 | sed -e s/\\\\./\\\\\\\\./g` OBJ_NAME=`basename $OBJECT` #echo OBJ_NAME=$OBJ_NAME -# we replace $OBJ_NAME with $OBJECT +# we replace $OBJ_NAME with $OBJECT only if $OBJ_NAME starts the line +# that's because some versions of GCC (e.g. 4.2.3) already produce +# a correct dependency line with the full path to the object file. +# In this case, we don't want to touch anything # -cat $2 | sed -e s%$OBJ_NAME%$OBJECT%g > $3 && rm -f $2 +cat $2 | sed -e s%^$OBJ_NAME%$OBJECT%g > $3 && rm -f $2 |