From: Rasmus Lerdorf Date: Mon, 23 Nov 2009 16:51:45 +0000 (+0000) Subject: Don't try to remove an empty output_obj here. X-Git-Tag: php-5.4.0alpha1~191^2~2363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80314eb721f2f6f09c06b7b6345f0d83c65b3e41;p=php 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) --- 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