20 lines
471 B
Makefile
20 lines
471 B
Makefile
# $NetBSD: hacks.mk,v 1.9 2020/08/14 08:00:57 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.
|
|
###
|
|
.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_HACKS_MK
|