summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2009-11-23 16:51:45 +0000
committerRasmus Lerdorf <rasmus@php.net>2009-11-23 16:51:45 +0000
commit8af473e4963a5f1ff4be6232eef36990b56dacd9 (patch)
treee5a4d8c1fa97079f97afaf6ddcadfc986e25f10b /ltmain.sh
parent755318926ed42fc94ee73026640b8fe959910ee3 (diff)
downloadphp-git-8af473e4963a5f1ff4be6232eef36990b56dacd9.tar.gz
Don't try to remove an empty output_obj here.
This gets rid of the annoying: rm: invalid argument: `' I was seeing. (I really shouldn't be hacking libtool)
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltmain.sh b/ltmain.sh
index 9e71d27d86..75857739f7 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -863,12 +863,13 @@ EOF
fi
if test -z "$output_obj"; then
+ $run $rm "$lobj"
# Place PIC objects in $objdir
command="$command -o $lobj"
+ else
+ $run $rm "$lobj" "$output_obj"
fi
- $run $rm "$lobj" "$output_obj"
-
$show "$command"
if $run eval "$command"; then :
else