summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-12-17 13:06:48 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-12-17 13:06:48 +0000
commitb09b43db13e52ad16285fe2d4a26f1bffa5955dd (patch)
treeef5d71185244227ac9991b0d1228d6a0a1b6036c /sys-devel/gcc-config
parentkeywords masked, because it's causing breakages all over the place (diff)
downloadgentoo-2-b09b43db13e52ad16285fe2d4a26f1bffa5955dd.tar.gz
gentoo-2-b09b43db13e52ad16285fe2d4a26f1bffa5955dd.tar.bz2
gentoo-2-b09b43db13e52ad16285fe2d4a26f1bffa5955dd.zip
small fixes
Diffstat (limited to 'sys-devel/gcc-config')
-rw-r--r--sys-devel/gcc-config/ChangeLog12
-rw-r--r--sys-devel/gcc-config/files/gcc-config-1.2.412
2 files changed, 20 insertions, 4 deletions
diff --git a/sys-devel/gcc-config/ChangeLog b/sys-devel/gcc-config/ChangeLog
index 02458afe7ddb..1730925e032a 100644
--- a/sys-devel/gcc-config/ChangeLog
+++ b/sys-devel/gcc-config/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sys-devel/gcc-config
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.8 2002/12/16 18:13:02 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.9 2002/12/17 13:06:48 azarah Exp $
+
+ 17 Dec 2002; Martin Schlemmer <azarah@gentoo.org> gcc-config-1.2.4 :
+
+ Do not add a LDPATH if the directory do not exist.
+
+*gcc-config-1.2.4 (16 Dec 2002)
+
+ 16 Dec 2002; Martin Schlemmer <azarah@gentoo.org> :
+
+ More fixes for wrappers.
*gcc-config-1.2.3 (16 Dec 2002)
diff --git a/sys-devel/gcc-config/files/gcc-config-1.2.4 b/sys-devel/gcc-config/files/gcc-config-1.2.4
index d274bf02ace5..8173f9695cb1 100644
--- a/sys-devel/gcc-config/files/gcc-config-1.2.4
+++ b/sys-devel/gcc-config/files/gcc-config-1.2.4
@@ -2,7 +2,7 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.1 2002/12/16 18:45:53 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.2 2002/12/17 13:06:48 azarah Exp $
source /etc/init.d/functions.sh || {
@@ -132,9 +132,15 @@ switch_profile() {
if [ -z "${MY_LDPATH}" ]
then
- MY_LDPATH="${LDPATH}"
+ if [ -d ${LDPATH} ]
+ then
+ MY_LDPATH="${LDPATH}"
+ fi
else
- MY_LDPATH="${MY_LDPATH}:${LDPATH}"
+ if [ -d ${LDPATH} ]
+ then
+ MY_LDPATH="${MY_LDPATH}:${LDPATH}"
+ fi
fi
fi
done