]> granicus.if.org Git - php/commitdiff
Don't try to remove an empty output_obj here.
authorRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 16:51:45 +0000 (16:51 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 16:51:45 +0000 (16:51 +0000)
This gets rid of the annoying:
rm: invalid argument: `'
I was seeing.
(I really shouldn't be hacking libtool)

ltmain.sh

index 9e71d27d86d48ea79d31f3be040ec3933bd76623..75857739f7fdd15fe6c000aff6f72d476396ffcf 100644 (file)
--- 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