summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2004-09-08 15:43:46 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2004-09-08 11:43:46 -0400
commit5f4a098e0594c3d49af7ce0c06dc60d6e3d395a8 (patch)
tree201e2ac31d3189bb61da1c626d80ff77fa5a9f3d /ltmain.sh
parent599eabdb42d10c1404f13d21137c85946d7fbd92 (diff)
downloadgcc-5f4a098e0594c3d49af7ce0c06dc60d6e3d395a8.tar.gz
ltmain.sh: Use $pic_object as $non_pic_object if $non_pic_object=none.
* ltmain.sh: Use $pic_object as $non_pic_object if $non_pic_object=none. From-SVN: r87191
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ltmain.sh b/ltmain.sh
index c1ef9974d0e..90925cb2f6d 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -1041,6 +1041,11 @@ EOF
if test -z "$pic_object" || test "$pic_object" = none ; then
arg="$non_pic_object"
fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
fi
else
# Only an error if not doing a dry-run.
@@ -1466,6 +1471,11 @@ EOF
if test -z "$pic_object" || test "$pic_object" = none ; then
arg="$non_pic_object"
fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
fi
else
# Only an error if not doing a dry-run.