summaryrefslogtreecommitdiff
path: root/editors/xemacs-current/hacks.mk
blob: 47e207537842843ff01383f5ffc1a8450ca1b776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: hacks.mk,v 1.5 2020/08/14 08:00:57 hauke Exp $

.if !defined(XEMACS_CURRENT_HACKS_MK)
XEMACS_CURRENT_HACKS_MK=	defined

.include "../../mk/compiler.mk"

### Position-independent code does not rhyme well with dumped emacsen.
###
.if !empty(CC_VERSION:Mgcc-[6789].*) || !empty(CC_VERSION:Mgcc-[1-9][0-9].*)
PKG_HACKS+=		disable-gcc-pie
CFLAGS+=		-no-pie
.endif

.if !empty(CC_VERSION:Mclang-*)
PKG_HACKS+=		disable-clang-pie
CFLAGS+=		-fno-pie
.endif

.endif  # XEMACS_CURRENT_HACKS_MK