lang/gcc12: check for CPUTYPE being defined

Reported by:	freshports
This commit is contained in:
Piotr Kubaj 2023-06-19 15:37:37 +02:00
parent ec3e02d42f
commit 6f24acefb2

View file

@ -60,7 +60,7 @@ MULTILIB_CONFIGURE_ENABLE= multilib
CONFIGURE_ARGS+= --disable-multilib
.endif
.if ${CPUTYPE:Mg[3-5]}
.if defined(CPUTYPE) && ${CPUTYPE:Mg[3-5]}
CFLAGS:= ${CFLAGS:S/mcpu=g/mcpu=G/}
CXXFLAGS:= ${CFLAGS:S/mcpu=g/mcpu=G/}
.endif