devel/psptoolchain-newlib: fix build when -march is set in env
PR: 233812 Submitted by: Tassilo Philipp <tphilipp@potion-studios.com> (maintainer)
This commit is contained in:
parent
4bf8d1cd00
commit
8f1ddd0432
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487017
1 changed files with 4 additions and 2 deletions
|
@ -23,10 +23,12 @@ BUILD_DEPENDS+= ${LOCALBASE}/${PSP_SDK_STAGE_PREFIX}/sdk/include/pspsdk.h:devel
|
|||
|
||||
USES= gmake makeinfo
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH}
|
||||
|
||||
# psp-gcc doesn't need -march=... in CFLAGS (e.g. set by CPUTYPE in make.conf); also need -g on psp for some reason
|
||||
CONFIGURE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH} \
|
||||
CFLAGS="${CFLAGS:C/(^|[[:space:]])-march=[^[:space:]]*//g} -g"
|
||||
MAKE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH}
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} --target="psp"
|
||||
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -g" # Apparently, it doesn't work on the PSP without debug information
|
||||
|
||||
# Disable installation of .info files and fix includedir reference.
|
||||
post-patch:
|
||||
|
|
Loading…
Reference in a new issue