757 |
esac |
esac |
758 |
done |
done |
759 |
|
|
760 |
|
qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` |
761 |
|
case $qlibobj in |
762 |
|
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") |
763 |
|
qlibobj="\"$qlibobj\"" ;; |
764 |
|
esac |
765 |
|
if test "X$libobj" != "X$qlibobj"; then |
766 |
|
$echo "$modename: libobj name \`$libobj' may not contain shell special characters." |
767 |
|
exit $EXIT_FAILURE |
768 |
|
fi |
769 |
objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` |
objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` |
770 |
xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` |
xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` |
771 |
if test "X$xdir" = "X$obj"; then |
if test "X$xdir" = "X$obj"; then |
838 |
$run $rm $removelist |
$run $rm $removelist |
839 |
exit $EXIT_FAILURE |
exit $EXIT_FAILURE |
840 |
fi |
fi |
841 |
$echo $srcfile > "$lockfile" |
$echo "$srcfile" > "$lockfile" |
842 |
fi |
fi |
843 |
|
|
844 |
if test -n "$fix_srcfile_path"; then |
if test -n "$fix_srcfile_path"; then |
845 |
eval srcfile=\"$fix_srcfile_path\" |
eval srcfile=\"$fix_srcfile_path\" |
846 |
fi |
fi |
847 |
|
qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` |
848 |
|
case $qsrcfile in |
849 |
|
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") |
850 |
|
qsrcfile="\"$qsrcfile\"" ;; |
851 |
|
esac |
852 |
|
|
853 |
$run $rm "$libobj" "${libobj}T" |
$run $rm "$libobj" "${libobj}T" |
854 |
|
|
870 |
fbsd_hideous_sh_bug=$base_compile |
fbsd_hideous_sh_bug=$base_compile |
871 |
|
|
872 |
if test "$pic_mode" != no; then |
if test "$pic_mode" != no; then |
873 |
command="$base_compile $srcfile $pic_flag" |
command="$base_compile $qsrcfile $pic_flag" |
874 |
else |
else |
875 |
# Don't build PIC code |
# Don't build PIC code |
876 |
command="$base_compile $srcfile" |
command="$base_compile $qsrcfile" |
877 |
fi |
fi |
878 |
|
|
879 |
if test ! -d "${xdir}$objdir"; then |
if test ! -d "${xdir}$objdir"; then |
953 |
if test "$build_old_libs" = yes; then |
if test "$build_old_libs" = yes; then |
954 |
if test "$pic_mode" != yes; then |
if test "$pic_mode" != yes; then |
955 |
# Don't build PIC code |
# Don't build PIC code |
956 |
command="$base_compile $srcfile" |
command="$base_compile $qsrcfile" |
957 |
else |
else |
958 |
command="$base_compile $srcfile $pic_flag" |
command="$base_compile $qsrcfile $pic_flag" |
959 |
fi |
fi |
960 |
if test "$compiler_c_o" = yes; then |
if test "$compiler_c_o" = yes; then |
961 |
command="$command -o $obj" |
command="$command -o $obj" |