summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2020-06-24 16:10:31 +0000
committerhauke <hauke@pkgsrc.org>2020-06-24 16:10:31 +0000
commitdd5a69deac546cb4d8b0ee3cb0e44470b0ad9424 (patch)
tree6edbdd573d52d63a006ed5accc73d4fbce2341d7 /editors
parent45b28563c3cb2f7da0ec497bb7d176e92c752499 (diff)
downloadpkgsrc-dd5a69deac546cb4d8b0ee3cb0e44470b0ad9424.tar.gz
Disable generation of PIE code for clang, too, unbreaking the xemacs
build on Mac OS X (10.12 here). Note that xemacs-current does not yet build on this platform: src/vdb-mach.c blindly assumes a powerpc cpu.
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs-current/hacks.mk10
-rw-r--r--editors/xemacs/hacks.mk10
2 files changed, 14 insertions, 6 deletions
diff --git a/editors/xemacs-current/hacks.mk b/editors/xemacs-current/hacks.mk
index 8b11aa12aa3..3950f0f58ba 100644
--- a/editors/xemacs-current/hacks.mk
+++ b/editors/xemacs-current/hacks.mk
@@ -1,16 +1,20 @@
-# $NetBSD: hacks.mk,v 1.3 2019/04/11 16:05:24 hauke Exp $
+# $NetBSD: hacks.mk,v 1.4 2020/06/24 16:10:31 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.
+### Position-independent code does not rhyme well with dumped emacsen.
###
.if !empty(CC_VERSION:Mgcc-[6789].*)
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
diff --git a/editors/xemacs/hacks.mk b/editors/xemacs/hacks.mk
index 29ab2da79f2..665884d7d4e 100644
--- a/editors/xemacs/hacks.mk
+++ b/editors/xemacs/hacks.mk
@@ -1,16 +1,20 @@
-# $NetBSD: hacks.mk,v 1.7 2019/04/11 16:05:24 hauke Exp $
+# $NetBSD: hacks.mk,v 1.8 2020/06/24 16:10:31 hauke Exp $
.if !defined(XEMACS_HACKS_MK)
XEMACS_HACKS_MK= defined
.include "../../mk/compiler.mk"
-### Position-independent code does not rhyme well with
-### dumped emacsen.
+### Position-independent code does not rhyme well with dumped emacsen.
###
.if !empty(CC_VERSION:Mgcc-[6789].*)
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_HACKS_MK