blob: b4f27d485b632c60fa3af65cd5efef3a34636e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $NetBSD: hacks.mk,v 1.2 2022/06/23 09:32:57 nia Exp $
.if !defined(DARKTABLE_HACKS_MK)
DARKTABLE_HACKS_MK:=
. include "../../mk/bsd.fast.prefs.mk"
. if ${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:M*gcc*)
PKG_HACKS+= disable-graphite-opt
# Disable some of the more ridiculous compiler flags being used, that are
# creating build failures with the system compiler on NetBSD due to the
# assumption that the isl/graphite optimizer is available.
CFLAGS+= -Wno-unknown-pragmas
SUBST_CLASSES+= opt
SUBST_MESSAGE.opt= Disabling excessive forced optimizations.
SUBST_STAGE.opt+= pre-configure
SUBST_SED.opt+= -e "s,pragma GCC optimize,pragma GCC nooptimize,g"
SUBST_FILES.opt+= src/iop/*.c
SUBST_FILES.opt+= src/iop/*.h
SUBST_FILES.opt+= src/develop/blends/*.c
SUBST_FILES.opt+= src/common/*.c
SUBST_FILES.opt+= src/common/*.h
. endif
.endif
|