summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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