2020-08-14 10:00:57 +02:00
|
|
|
# $NetBSD: hacks.mk,v 1.9 2020/08/14 08:00:57 hauke Exp $
|
2019-04-11 18:05:24 +02:00
|
|
|
|
|
|
|
.if !defined(XEMACS_HACKS_MK)
|
|
|
|
XEMACS_HACKS_MK= defined
|
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2020-06-24 18:10:31 +02:00
|
|
|
### Position-independent code does not rhyme well with dumped emacsen.
|
2019-04-11 18:05:24 +02:00
|
|
|
###
|
2020-08-14 10:00:57 +02:00
|
|
|
.if !empty(CC_VERSION:Mgcc-[6789].*) || !empty(CC_VERSION:Mgcc-[1-9][0-9].*)
|
2019-04-11 18:05:24 +02:00
|
|
|
PKG_HACKS+= disable-gcc-pie
|
|
|
|
CFLAGS+= -no-pie
|
|
|
|
.endif
|
|
|
|
|
2020-06-24 18:10:31 +02:00
|
|
|
.if !empty(CC_VERSION:Mclang-*)
|
|
|
|
PKG_HACKS+= disable-clang-pie
|
|
|
|
CFLAGS+= -fno-pie
|
|
|
|
.endif
|
|
|
|
|
2019-04-11 18:05:24 +02:00
|
|
|
.endif # XEMACS_HACKS_MK
|