games/dxx-rebirth: enable LTO
This commit is contained in:
parent
e27f128b73
commit
285cd01158
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= dxx-rebirth
|
||||
PORTVERSION= 20220121
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONSUFFIX= -src
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= https://www.dxx-rebirth.com/download/dxx/rebirth/
|
||||
|
|
@ -29,6 +30,12 @@ MAKE_ARGS= ignore_unknown_variables=1 sdl2=1
|
|||
PLIST_FILES= bin/d1x-rebirth \
|
||||
bin/d2x-rebirth
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} != powerpc64 && ${ARCH} != riscv64
|
||||
MAKE_ARGS+= lto=1
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \
|
||||
${STAGEDIR}${PREFIX}/bin/d2x-rebirth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue