diff options
author | tnn <tnn@pkgsrc.org> | 2021-10-12 13:46:14 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2021-10-12 13:46:14 +0000 |
commit | a26de774762f1a5f3ecd8d48539a61e77a647616 (patch) | |
tree | 22c9f570f3784fd9bebb2f1901364e4ffb906073 /lang/gcc7 | |
parent | 4a223b7758ae116eb1edca4c013193d384d8b30f (diff) | |
download | pkgsrc-a26de774762f1a5f3ecd8d48539a61e77a647616.tar.gz |
lang/gcc*: skip some RELRO checks when --disable-boostrap
This relates to the case when GCC is built using clang host CC. In that
case the runtime libraries are not built with RELRO for some reason.
for the gcc*-libs/ packages, mark them as RELRO_SUPPORTED=no unconditionally.
RELRO status depends on how the parent gcc package was built so we don't
need nor care about the RELRO status here.
Diffstat (limited to 'lang/gcc7')
-rw-r--r-- | lang/gcc7/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/gcc7/Makefile b/lang/gcc7/Makefile index 8d22178cb77..16c8e1b44d9 100644 --- a/lang/gcc7/Makefile +++ b/lang/gcc7/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2021/10/01 11:49:59 nia Exp $ +# $NetBSD: Makefile,v 1.42 2021/10/12 13:46:14 tnn Exp $ GCC_PKGNAME= gcc7 .include "version.mk" @@ -122,9 +122,9 @@ MAKE_ENV.NetBSD+= ac_cv_func_newlocale=no MAKE_ENV.NetBSD+= ac_cv_func_uselocale=no MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no -CONFIGURE_ARGS.DragonFly+= --disable-bootstrap -.if !empty(PKGSRC_COMPILER:Mclang) -CONFIGURE_ARGS+= --disable-bootstrap +.if !empty(PKGSRC_COMPILER:Mclang) || ${OPSYS} == "DragonFly" +CONFIGURE_ARGS+= --disable-bootstrap +CHECK_RELRO_SKIP+= ${GCC_PKGNAME}/lib/* .endif .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386) |