diff --git a/devel/psptoolchain-pspsdk-stage2/Makefile b/devel/psptoolchain-pspsdk-stage2/Makefile index e82c71cba9ed..efff36df42e1 100644 --- a/devel/psptoolchain-pspsdk-stage2/Makefile +++ b/devel/psptoolchain-pspsdk-stage2/Makefile @@ -1,26 +1,30 @@ # Created by: Tassilo Philipp # $FreeBSD$ PORTREVISION= 2 PKGNAMESUFFIX= -stage2 MAINTAINER= tphilipp@potion-studios.com COMMENT= PlayStation Portable development toolchain ${PORTNAME} BUILD_DEPENDS= psp-cpp:devel/psptoolchain-gcc-stage2 \ psp-gcc:devel/psptoolchain-gcc-stage2 \ psp-gcov:devel/psptoolchain-gcc-stage2 \ psp-g++:devel/psptoolchain-gcc-stage2 \ psp-ar:devel/psptoolchain-binutils \ ${LOCALBASE}/psp/lib/libc.a:devel/psptoolchain-newlib # psp-gcc doesn't need -march=... in CFLAGS (e.g. set by CPUTYPE in make.conf) CONFIGURE_ENV= CFLAGS="${CFLAGS:C/(^|[[:space:]])-march=[^[:space:]]*//g}" CONFIGURE_ARGS= --prefix=${PREFIX} --with-pspdev="${LOCALBASE}" -SSP_CFLAGS?= -fstack-protector # XXX -strong isn't supported by GCC < 4.9 +# there is no libssp w/ PSP SDK, disable stack guards as they would be +# unresolved symbols, explicitly disable to be on the safe side +SSP_UNSAFE= yes +CFLAGS+= -fno-stack-protector +LDFLAGS+= -fno-stack-protector PLIST= ${.CURDIR}/pkg-plist MASTERDIR= ${.CURDIR}/../psptoolchain-pspsdk-stage1 .include "${MASTERDIR}/Makefile"