diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-01-15 22:28:10 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-01-15 22:28:10 +0000 |
commit | b25c0d1e7265936b6f9aaf54fffed11422900bdf (patch) | |
tree | a73cfc6d98a125a0beb070000e740ab0d5b597ac | |
parent | fix wrapper calling cc-config (diff) | |
download | gcc-config-1.3.0.tar.gz gcc-config-1.3.0.tar.bz2 gcc-config-1.3.0.zip |
fix gcc not finding internal headers, bug #8132v1.3.0
-rwxr-xr-x | gcc-config | 2 | ||||
-rw-r--r-- | wrapper.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -2,7 +2,7 @@ # Copyright 1999-2002 Gentoo Foundation # Distributed under the terms of the GNU General Public License # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.9,v 1.1 2003/01/15 01:59:58 azarah Exp $ +# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.0,v 1.1 2003/01/15 22:28:10 azarah Exp $ source /etc/init.d/functions.sh || { @@ -2,7 +2,7 @@ * Copyright 1999-2003 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * Author: Martin Schlemmer <azarah@gentoo.org> - * $Header: gentoo-x86/sys-devel/gcc-config/files/wrapper.c,v 1.2 2003/01/15 01:59:58 azarah Exp $ + * $Header: gentoo-x86/sys-devel/gcc-config/files/wrapper.c,v 1.3 2003/01/15 22:28:10 azarah Exp $ */ #define _REENTRANT @@ -114,6 +114,10 @@ int main(int argc, char **argv) { } } + /* Set argv[0] to the correct binary, else gcc do not find internal + * headers, etc (bug #8132). */ + argv[0] = wrapperbin; + /* Ok, do it ... */ if (execv(wrapperbin, argv) < 0) { fprintf(stderr, "Could not run/locate %s!\n", wrappername); |