diff options
Diffstat (limited to 'lang/ifc/files/ld.c')
-rw-r--r-- | lang/ifc/files/ld.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/ifc/files/ld.c b/lang/ifc/files/ld.c index 79b092b38a50..fb304c1854ca 100644 --- a/lang/ifc/files/ld.c +++ b/lang/ifc/files/ld.c @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: /tmp/pcvs/ports/lang/ifc/files/ld.c,v 1.5 2004-01-31 23:32:41 maho Exp $"); +__FBSDID("$FreeBSD: /tmp/pcvs/ports/lang/ifc/files/ld.c,v 1.6 2004-05-26 14:45:21 maho Exp $"); #include <err.h> #include <stdio.h> @@ -190,7 +190,9 @@ main(int argc, char *argv[], char *envp[]) /* ifc8 */ ARGCMP(i, "-lpthread") || /* ifc8 */ - ARGCMP(i, "-PIC")) + ARGCMP(i, "-PIC") || + (ARGCMP(i, "-m") && i<argc-1 && ARGCMP(i+1, "elf_i386")) || + (ARGCMP(i, "elf_i386") && i != 0 && ARGCMP(i-1, "-m"))) continue; /* prepend "-melf_i386" to the commandline */ |