summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-12-28 21:54:56 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-12-28 21:54:56 +0000
commit5ae44a5ceef4d7fdcc27e7929c37175da4d53303 (patch)
tree02c0c18aedf9f53099cf301e8e69f1f207ad5ced /sys-devel/gcc
parentinitial ebuild #33068 (diff)
downloadhistorical-5ae44a5ceef4d7fdcc27e7929c37175da4d53303.tar.gz
historical-5ae44a5ceef4d7fdcc27e7929c37175da4d53303.tar.bz2
historical-5ae44a5ceef4d7fdcc27e7929c37175da4d53303.zip
Small tweaks
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r--sys-devel/gcc/files/awk/fixlafiles.awk11
-rw-r--r--sys-devel/gcc/files/fix_libtool_files.sh9
2 files changed, 16 insertions, 4 deletions
diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk b/sys-devel/gcc/files/awk/fixlafiles.awk
index 25ea4084679d..a4093e5b370f 100644
--- a/sys-devel/gcc/files/awk/fixlafiles.awk
+++ b/sys-devel/gcc/files/awk/fixlafiles.awk
@@ -1,7 +1,7 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.8 2003/08/24 08:40:43 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.9 2003/12/28 21:54:56 azarah Exp $
function printn(string)
{
@@ -60,6 +60,15 @@ function dosystem(command, ret)
BEGIN {
+ # Get our variables from environment
+ OLDVER = ENVIRON["OLDVER"]
+ OLDCHOST = ENVIRON["OLDCHOST"]
+
+ if (OLDVER == "") {
+ eerror("Could not get OLDVER!");
+ exit 1
+ }
+
LIBCOUNT = 0
# Add the two default library paths
DIRLIST[1] = "/lib"
diff --git a/sys-devel/gcc/files/fix_libtool_files.sh b/sys-devel/gcc/files/fix_libtool_files.sh
index ac1e79a1dbfe..efda3d2d1154 100644
--- a/sys-devel/gcc/files/fix_libtool_files.sh
+++ b/sys-devel/gcc/files/fix_libtool_files.sh
@@ -2,7 +2,7 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.7 2003/08/24 08:40:43 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.8 2003/12/28 21:54:56 azarah Exp $
usage() {
cat << "USAGE_END"
@@ -65,9 +65,12 @@ then
exit 1
fi
+OLDVER="${ARGV1}"
+
+export OLDVER OLDCHOST
+
einfo "Scannig libtool files for hardcoded gcc library paths..."
-/bin/gawk -v OLDVER="${ARGV1}" -v OLDCHOST="${OLDCHOST}" \
- -f "${AWKDIR}/fixlafiles.awk"
+/bin/gawk -f "${AWKDIR}/fixlafiles.awk"
# vim:ts=4