blob: 4255d3ba0726b3ae4723b7a2ffa7898892e81a08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# $NetBSD: hacks.mk,v 1.1 2020/06/21 17:53:01 tsutsui Exp $
.if !defined(MLTERM_HACKS_MK)
MLTERM_HACKS_MK= defined
.include "../../mk/compiler.mk"
# On NetBSD/sh3el 9.0, the default -Os causes an error on compiling
# vt_line_bidi.c and -fno-dce works around. (PR/55265)
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sh3*) && !empty(CC_VERSION:Mgcc-7.4.*)
PKG_HACKS+= optimisation
# XXX: is there any good way to replace the default -Os with multiple args?
#BUILDLINK_TRANSFORM+=
CFLAGS+= -fno-dce
.endif
.endif # MLTERM_HACKS_MK
|