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.
This commit is contained in:
parent
0a01162797
commit
d04ebdc8fd
2 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue