diff options
author | pho <pho@pkgsrc.org> | 2022-02-24 09:18:09 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2022-02-24 09:18:09 +0000 |
commit | 785161db9d6c88405f1a4c767cda7ea08bb8ae66 (patch) | |
tree | 9995864738dbbe0aa5d4544c569f443bace18249 /lang/ghc90/Makefile | |
parent | 527d7f63a0f43927e0546dd39623eb390b5229d9 (diff) | |
download | pkgsrc-785161db9d6c88405f1a4c767cda7ea08bb8ae66.tar.gz |
lang/ghc90: Use ${_PKGSRC_MKPIE} instead of ${_OPSYS_SUPPORTS_MKPIE}
It's the variable that indicates if MKPIE is requested and feasible on the
platform. In fact I originally wrote a condition mentioning
${_PKGSRC_MKPIE}, but it somehow got lost while I was refactoring the code.
Diffstat (limited to 'lang/ghc90/Makefile')
-rw-r--r-- | lang/ghc90/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lang/ghc90/Makefile b/lang/ghc90/Makefile index 2fabfef949e..39698b58c90 100644 --- a/lang/ghc90/Makefile +++ b/lang/ghc90/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2022/02/06 05:31:57 pho Exp $ +# $NetBSD: Makefile,v 1.19 2022/02/24 09:18:09 pho Exp $ # ----------------------------------------------------------------------------- # Package metadata # @@ -103,17 +103,21 @@ CONFIGURE_ENV+= CONF_GCC_LINKER_OPTS_STAGE${stage}=${LDFLAGS:M*:Q} # the buildlink. .endfor -# The use of internal variable in mk/bsd.prefs.mk is not very satisfying, -# but the current infrastructure does not export a public variable -# indicating whether a PIE build is requested or not. Note that we can't -# build stage-1 compiler as PIE, because our bootkit libraries aren't +# The use of internal variable ${_PKGSRC_MKPIE} in mk/bsd.prefs.mk is not +# very satisfying, but the current infrastructure does not export a public +# variable indicating whether a PIE build is requested or not. Note that we +# can't build stage-1 compiler as PIE, because our bootkit libraries aren't # necessarily built as PIC. .for stage in 0 1 2 . if ${stage} == 0 CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q} . else +. if ${_PKGSRC_MKPIE} == "yes" CONFIGURE_ENV+= CONF_HC_OPTS_STAGE${stage}=-fPIC\ -pie CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}\ -fPIC +. else +CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q} +. endif . endif .endfor |