BSD workaround round 2

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-16 23:27:21 +02:00
parent 57858a28f0
commit 5f4011c760
3 changed files with 10 additions and 8 deletions

View file

@ -32,11 +32,4 @@ NLS_USES = gettext
NLS_CMAKE_ON = -DWITH_INTL=TRUE
NLS_CMAKE_OFF = -DWITH_INTL=FALSE
# workaround for Plasma desktop crashes, possible miss-optimization since it
# does not crash when build for debugging
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1300000
USE_GCC = yes
.endif
.include <bsd.port.mk>

View file

@ -17,7 +17,7 @@ DISTFILES = master.tar.gz
DIST_SUBDIR = ${DISTNAME}
WRKSRC = ${WRKDIR}/katie-master
COMPILER = base-gcc ports-gcc
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
BUILD_DEPENDS = devel/gettext,-tools
RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils fonts/freefont-ttf

View file

@ -242,6 +242,15 @@ set_target_properties(KtScript PROPERTIES
EXPORT_NAME Script
)
# workaround for Plasma desktop crashes, possible miss-optimization since
# Plasma does not crash when Katie is build for debugging
if(CMAKE_SYSTEM_NAME MATCHES "BSD")
target_compile_options(
KtScript PRIVATE
-O0
)
endif()
install(
TARGETS KtScript
EXPORT KatieTargets ${INSTALL_TARGETS_DEFAULT_ARGS}