diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-03-07 09:41:51 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-03-07 09:41:51 +0000 |
commit | 4dc31b76967b7cb8d51dd7c0d244bb6ea785085a (patch) | |
tree | 0eaa8081937d5f9d397e74af3c486fd19a25676b /gnu/usr.bin | |
parent | dac2f5e952646f548a15a505091e099e6c494dab (diff) |
workaround a gcc bug on vax; hugh@ ok
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/ld/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/Makefile b/gnu/usr.bin/ld/Makefile index e03c2247670..9acd52e6e31 100644 --- a/gnu/usr.bin/ld/Makefile +++ b/gnu/usr.bin/ld/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2001/12/26 19:44:39 miod Exp $ +# $OpenBSD: Makefile,v 1.10 2002/03/07 09:41:50 fgsch Exp $ # $NetBSD: Makefile,v 1.13 1995/04/23 07:58:46 cgd Exp $ TARGET_MACHINE_ARCH?= $(MACHINE_ARCH) @@ -7,6 +7,11 @@ PROG= ld SRCS= ld.c symbol.c lib.c shlib.c warnings.c etc.c rrs.c xbits.c md.c CPPFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/$(TARGET_MACHINE_ARCH) +.if (${MACHINE_ARCH} == "vax") +ld.o: + ${CC} ${CFLAGS} ${CPPFLAGS} -O0 -c $< +.endif + .if ($(TARGET_MACHINE_ARCH) != $(MACHINE_ARCH)) CPPFLAGS+= -DCROSS_LINKER -DXHOST=$(MACHINE_ARCH) \ -Icross-include |