summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-02-05 11:00:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-02-05 11:00:57 +0000
commite6103882214d98d9da732caf04cd22f7d76c5ced (patch)
treeb05b8b90f45e26ffe684d3843b57bf5ff84cda0c /gnu/usr.bin/gcc
parent10c3866d609f6334d62e981f8ec90b164dfcbf61 (diff)
-dynamic-linker ld.so is NOT a normal object file. Fixes issues in trying
to build a gcc3 sparc. (reviewed and accepted upstream)
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r--gnu/usr.bin/gcc/gcc/collect2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/collect2.c b/gnu/usr.bin/gcc/gcc/collect2.c
index 08f54113dd8..68c012f9d76 100644
--- a/gnu/usr.bin/gcc/gcc/collect2.c
+++ b/gnu/usr.bin/gcc/gcc/collect2.c
@@ -1127,6 +1127,11 @@ main (argc, argv)
ld1--;
ld2--;
}
+ if (!strcmp (arg, "-dynamic-linker") && argv[1])
+ {
+ ++argv;
+ *ld1++ = *ld2++ = *argv;
+ }
break;
case 'l':