Extend gcc version range for -no-pie, since gcc 10 is here.diff -r1.8 -r1.9 pkgsrc/editors/xemacs/hacks.mk
(hauke)
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: hacks.mk,v 1.8 2020/06/24 16:10:31 hauke Exp $ | 1 | # $NetBSD: hacks.mk,v 1.9 2020/08/14 08:00:57 hauke Exp $ | |
2 | 2 | |||
3 | .if !defined(XEMACS_HACKS_MK) | 3 | .if !defined(XEMACS_HACKS_MK) | |
4 | XEMACS_HACKS_MK= defined | 4 | XEMACS_HACKS_MK= defined | |
5 | 5 | |||
6 | .include "../../mk/compiler.mk" | 6 | .include "../../mk/compiler.mk" | |
7 | 7 | |||
8 | ### Position-independent code does not rhyme well with dumped emacsen. | 8 | ### Position-independent code does not rhyme well with dumped emacsen. | |
9 | ### | 9 | ### | |
10 | .if !empty(CC_VERSION:Mgcc-[6789].*) | 10 | .if !empty(CC_VERSION:Mgcc-[6789].*) || !empty(CC_VERSION:Mgcc-[1-9][0-9].*) | |
11 | PKG_HACKS+= disable-gcc-pie | 11 | PKG_HACKS+= disable-gcc-pie | |
12 | CFLAGS+= -no-pie | 12 | CFLAGS+= -no-pie | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | .if !empty(CC_VERSION:Mclang-*) | 15 | .if !empty(CC_VERSION:Mclang-*) | |
16 | PKG_HACKS+= disable-clang-pie | 16 | PKG_HACKS+= disable-clang-pie | |
17 | CFLAGS+= -fno-pie | 17 | CFLAGS+= -fno-pie | |
18 | .endif | 18 | .endif | |
19 | 19 | |||
20 | .endif # XEMACS_HACKS_MK | 20 | .endif # XEMACS_HACKS_MK |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: hacks.mk,v 1.4 2020/06/24 16:10:31 hauke Exp $ | 1 | # $NetBSD: hacks.mk,v 1.5 2020/08/14 08:00:57 hauke Exp $ | |
2 | 2 | |||
3 | .if !defined(XEMACS_CURRENT_HACKS_MK) | 3 | .if !defined(XEMACS_CURRENT_HACKS_MK) | |
4 | XEMACS_CURRENT_HACKS_MK= defined | 4 | XEMACS_CURRENT_HACKS_MK= defined | |
5 | 5 | |||
6 | .include "../../mk/compiler.mk" | 6 | .include "../../mk/compiler.mk" | |
7 | 7 | |||
8 | ### Position-independent code does not rhyme well with dumped emacsen. | 8 | ### Position-independent code does not rhyme well with dumped emacsen. | |
9 | ### | 9 | ### | |
10 | .if !empty(CC_VERSION:Mgcc-[6789].*) | 10 | .if !empty(CC_VERSION:Mgcc-[6789].*) || !empty(CC_VERSION:Mgcc-[1-9][0-9].*) | |
11 | PKG_HACKS+= disable-gcc-pie | 11 | PKG_HACKS+= disable-gcc-pie | |
12 | CFLAGS+= -no-pie | 12 | CFLAGS+= -no-pie | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | .if !empty(CC_VERSION:Mclang-*) | 15 | .if !empty(CC_VERSION:Mclang-*) | |
16 | PKG_HACKS+= disable-clang-pie | 16 | PKG_HACKS+= disable-clang-pie | |
17 | CFLAGS+= -fno-pie | 17 | CFLAGS+= -fno-pie | |
18 | .endif | 18 | .endif | |
19 | 19 | |||
20 | .endif # XEMACS_CURRENT_HACKS_MK | 20 | .endif # XEMACS_CURRENT_HACKS_MK |