summaryrefslogtreecommitdiffstats
path: root/ltmain.sh
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2002-05-06 21:26:49 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2002-05-06 21:26:49 +0000
commit97320a3f230eb28eae3f084c7e4543dbd64a1d8e (patch)
tree04e9805082b5dc717e6ad9402bbd91c4f307ca53 /ltmain.sh
parentTest all the facets for the temporary "C" locale switch issue. (diff)
downloadgcc-97320a3f230eb28eae3f084c7e4543dbd64a1d8e.tar.gz
gcc-97320a3f230eb28eae3f084c7e4543dbd64a1d8e.tar.bz2
gcc-97320a3f230eb28eae3f084c7e4543dbd64a1d8e.tar.xz
ltmain.sh: Detect and handle object name conflicts while piecewise linking a static library.
* ltmain.sh: Detect and handle object name conflicts while piecewise linking a static library. From-SVN: r53237
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ltmain.sh b/ltmain.sh
index c3547e5a561..92526b60b79 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -4247,6 +4247,20 @@ fi\
4247 objlist= 4247 objlist=
4248 concat_cmds= 4248 concat_cmds=
4249 save_oldobjs=$oldobjs 4249 save_oldobjs=$oldobjs
4250 # GNU ar 2.10+ was changed to match POSIX; thus no paths are
4251 # encoded into archives. This makes 'ar r' malfunction in
4252 # this piecewise linking case whenever conflicting object
4253 # names appear in distinct ar calls; check, warn and compensate.
4254 if (for obj in $save_oldobjs
4255 do
4256 $echo "X$obj" | $Xsed -e 's%^.*/%%'
4257 done | sort | sort -uc >/dev/null 2>&1); then
4258 :
4259 else
4260 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
4261 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
4262 AR_FLAGS=cq
4263 fi
4250 for obj in $save_oldobjs 4264 for obj in $save_oldobjs
4251 do 4265 do
4252 oldobjs="$objlist $obj" 4266 oldobjs="$objlist $obj"