summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgcc-config5
-rw-r--r--wrapper.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc-config b/gcc-config
index 0bc9608..9d7d9c7 100755
--- a/gcc-config
+++ b/gcc-config
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.11,v 1.5 2005/06/13 04:57:03 vapier Exp $
+# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.11,v 1.6 2005/07/07 23:03:40 vapier Exp $
trap ":" INT QUIT TSTP
@@ -213,7 +213,8 @@ switch_profile() {
# sync mtimes together. This makes things like ccache
# happy. See Bug #70548 for more info.
local ref=${ROOT}/${GCC_BIN_PATH}/${x}
- [[ ${x} == "cc" ]] && ref=${ROOT}/${GCC_BIN_PATH}/gcc
+ [[ ${x} == "cc" ]] && ref=${ROOT}/${GCC_BIN_PATH}/gcc
+ [[ ${x} == "f77" ]] && ref=${ROOT}/${GCC_BIN_PATH}/g77
if [[ -x ${ref} ]] ; then
${CP} -f "${ROOT}/usr/lib/misc/gcc-config" \
"${ROOT}/usr/bin/${x}"
diff --git a/wrapper.c b/wrapper.c
index 03b14f7..ab3e0fe 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -1,7 +1,7 @@
/*
* Copyright 1999-2005 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: gentoo-x86/sys-devel/gcc-config/files/wrapper-1.4.6.c,v 1.2 2005/03/16 23:32:12 vapier Exp $
+ * $Header: gentoo-x86/sys-devel/gcc-config/files/wrapper-1.4.6.c,v 1.3 2005/07/07 23:03:40 vapier Exp $
* Author: Martin Schlemmer <azarah@gentoo.org>
*/
@@ -353,6 +353,8 @@ int main(int argc, char *argv[])
/* cc calls "/full/path/to/gcc" ... */
if (!strcmp(data->name, "cc"))
strcpy(data->name, "gcc");
+ if (!strcmp(data->name, "f77"))
+ data->name[0] = 'g';
/* What is the full name of our wrapper? */
size = sizeof(data->fullname);