mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
BSD workaround round 2
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
57858a28f0
commit
5f4011c760
3 changed files with 10 additions and 8 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue