summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-12 07:00:10 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-12 07:00:10 +0000
commit15ca02f138cdf3630fc2ffce3da91fe02cb82413 (patch)
tree871acd6cf09fe06c1f9f1bd3b3947ef91b25337a
parentsome more tweaks/fixups from Kevin F. Quinn #125805 (diff)
downloadgcc-config-15ca02f138cdf3630fc2ffce3da91fe02cb82413.tar.gz
gcc-config-15ca02f138cdf3630fc2ffce3da91fe02cb82413.tar.bz2
gcc-config-15ca02f138cdf3630fc2ffce3da91fe02cb82413.zip
Add wrappers for gcjh, gfortran, and the D language #157694 by Philipp Kirchner.
-rwxr-xr-xgcc-config9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc-config b/gcc-config
index 656b190..6ad9f03 100755
--- a/gcc-config
+++ b/gcc-config
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2006 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.15,v 1.2 2006/12/16 19:36:27 vapier Exp $
+# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.15,v 1.3 2007/03/12 07:00:10 vapier Exp $
trap ":" INT QUIT TSTP
@@ -295,9 +295,10 @@ switch_profile() {
done
# Update the wrappers for this profile
- local native="gcc cpp cc c++ g++ f77 g77 gcj"
- is_cross_compiler && native=""
- for x in ${native} ${CTARGET}-{cpp,gcc,c++,g++,f77,g77,gcj} ; do
+ for x in {,${CTARGET}}-{cpp,cc,gcc,c++,g++,f77,g77,gcj,gcjh,gfortran,gdc,gdmd} ; do
+ # Obviously don't want to touch native stuff for cross-compilers
+ [[ ${x} != ${CTARGET}-* ]] && is_cross_compiler && continue
+
# Make sure we have no stale wrappers
${RM} -f "${ROOT}/usr/bin/${x}"
[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \