summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-08 15:43:46 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-08 15:43:46 +0000
commitc600ebdbf076e80f178bb67ec6bb5abf9427537b (patch)
tree201e2ac31d3189bb61da1c626d80ff77fa5a9f3d /ltmain.sh
parent60cfcb79540b5415f1dd4860aa0c9cb3d006e429 (diff)
downloadgcc-c600ebdbf076e80f178bb67ec6bb5abf9427537b.tar.gz
* ltmain.sh: Use $pic_object as $non_pic_object if
$non_pic_object=none. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87191 138bc75d-0d04-0410-961f-82ee72b054a4
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.