summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgcc-config2
-rw-r--r--wrapper.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc-config b/gcc-config
index b84e46d..8874719 100755
--- a/gcc-config
+++ b/gcc-config
@@ -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 || {
diff --git a/wrapper.c b/wrapper.c
index a8497f0..4ef738b 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -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);