diff options
author | maho <maho@FreeBSD.org> | 2004-05-26 22:45:21 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2004-05-26 22:45:21 +0800 |
commit | b320e4d913c9c4bf6355b7fbae1781530377d0f5 (patch) | |
tree | 9f944092a3a11dbd34ff0d01999aab17bf1d13b7 /lang/ifc/files | |
parent | e7ca9a59a10ca571ec890cf631fe2e57fb912a0c (diff) | |
download | freebsd-ports-gnome-b320e4d913c9c4bf6355b7fbae1781530377d0f5.tar.gz freebsd-ports-gnome-b320e4d913c9c4bf6355b7fbae1781530377d0f5.tar.zst freebsd-ports-gnome-b320e4d913c9c4bf6355b7fbae1781530377d0f5.zip |
fix for ports/66514 problem and update to 8.0.046
PR: 67127
Submitted by: Masakazu HIGAKI
Diffstat (limited to 'lang/ifc/files')
-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 */ |