on alpha, remove optimization flags when compiling prog_execute.c to

prevent an internal compiler error in gcc 4.2.1; ok matthieu@
This commit is contained in:
naddy 2011-11-29 14:57:54 +00:00
parent b932741cf2
commit e1ab192eb3

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2011/10/23 13:57:36 matthieu Exp $
# $OpenBSD: Makefile,v 1.12 2011/11/29 14:57:54 naddy Exp $
MESA= ${.CURDIR}/../../../dist/Mesa/src/mesa
MAPI= ${.CURDIR}/../../../dist/Mesa/src/mapi
@ -351,6 +351,15 @@ cleandir: clean
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if ${MACHINE_ARCH} == alpha
# remove optimization flags to prevent gcc 4.2.1 ICE
prog_execute.so: prog_execute.c
@echo "${COMPILE.c:N-O*} ${PICFLAG} -DPIC ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c:N-O*} ${PICFLAG} -DPIC ${.ALLSRC} -o ${.TARGET}.o
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.endif
.cpp.so:
@echo "${COMPILE.cc} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}"
@${COMPILE.cc} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}.o