Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors Disable generation of PIE code for clang, too,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b8ccee1aa6f
branches: trunk
changeset: 434872:3b8ccee1aa6f
user: hauke <hauke%pkgsrc.org@localhost>
date: Wed Jun 24 16:10:31 2020 +0000
description:
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:
editors/xemacs-current/hacks.mk | 10 +++++++---
editors/xemacs/hacks.mk | 10 +++++++---
2 files changed, 14 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r ebe76c7e6672 -r 3b8ccee1aa6f editors/xemacs-current/hacks.mk
--- a/editors/xemacs-current/hacks.mk Wed Jun 24 14:35:12 2020 +0000
+++ b/editors/xemacs-current/hacks.mk Wed Jun 24 16:10:31 2020 +0000
@@ -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 -r ebe76c7e6672 -r 3b8ccee1aa6f editors/xemacs/hacks.mk
--- a/editors/xemacs/hacks.mk Wed Jun 24 14:35:12 2020 +0000
+++ b/editors/xemacs/hacks.mk Wed Jun 24 16:10:31 2020 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index