summaryrefslogtreecommitdiff
path: root/gnu
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
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')
-rw-r--r--gnu/egcs/gcc/collect2.c5
-rw-r--r--gnu/usr.bin/gcc/gcc/collect2.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/collect2.c b/gnu/egcs/gcc/collect2.c
index cd7ee2747e7..a08cbaf17e3 100644
--- a/gnu/egcs/gcc/collect2.c
+++ b/gnu/egcs/gcc/collect2.c
@@ -1314,6 +1314,11 @@ main (argc, argv)
ld1--;
ld2--;
}
+ if (!strcmp (arg, "-dynamic-linker") && argv[1])
+ {
+ ++argv;
+ *ld1++ = *ld2++ = *argv;
+ }
break;
case 'l':
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':