aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-05 00:20:33 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-05 00:20:33 +0000
commit23ebfeefdb886ed6ba0bdee27f8f9ac75ef9c033 (patch)
tree5f88348c4a30e840db78258e156db3b1aee6aaf3 /bin
parentdont try to chmod +x files that are already +x #81427 (diff)
downloadportage-cvs-23ebfeefdb886ed6ba0bdee27f8f9ac75ef9c033.tar.gz
portage-cvs-23ebfeefdb886ed6ba0bdee27f8f9ac75ef9c033.tar.bz2
portage-cvs-23ebfeefdb886ed6ba0bdee27f8f9ac75ef9c033.zip
make sure ldscripts exist in /usr/lib when static/dynamic libs are in /usr/lib and /lib #81420
Diffstat (limited to 'bin')
-rwxr-xr-xbin/prepall17
1 files changed, 16 insertions, 1 deletions
diff --git a/bin/prepall b/bin/prepall
index 153fdce..6778c10 100755
--- a/bin/prepall
+++ b/bin/prepall
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/prepall,v 1.12 2005/05/05 00:10:23 vapier Exp $
+# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/prepall,v 1.13 2005/05/05 00:20:33 vapier Exp $
prepallman
prepallinfo
@@ -22,3 +22,18 @@ for i in "${D}"opt/*/lib{,32,64} \
chmod +x "${j}"
done
done
+
+# When installing static libraries into /usr/lib and shared libraries into
+# /lib, we have to make sure we have a linker script in /usr/lib along side
+# the static library, or gcc will utilize the static lib when linking :(.
+# http://bugs.gentoo.org/show_bug.cgi?id=4411
+for a in "${D}"/usr/lib/*.a ; do
+ s=${a%.a}.so
+ if [ ! -e "${s}" ] ; then
+ s=${s##*/}
+ if [ -e "${D}/lib/${s}" ] ; then
+ echo -e "\aQA Notice: missing gen_usr_ldscript for ${s}\a"
+ sleep 1
+ fi
+ fi
+done