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