diff options
-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); |