pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ghc92 ghc92: Only pass -pie if it is supported.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d048dd8ec027
branches:  trunk
changeset: 374482:d048dd8ec027
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Feb 23 16:01:20 2022 +0000

description:
ghc92: Only pass -pie if it is supported.

This isn't ideal, _OPSYS_SUPPORTS_MKPIE is an internal variable and we are
assuming if it's defined it's enabled, but for now it's the best we have.

diffstat:

 lang/ghc92/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5b2c579bed90 -r d048dd8ec027 lang/ghc92/Makefile
--- a/lang/ghc92/Makefile       Wed Feb 23 15:53:25 2022 +0000
+++ b/lang/ghc92/Makefile       Wed Feb 23 16:01:20 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2022/02/17 15:57:07 pho Exp $
+# $NetBSD: Makefile,v 1.5 2022/02/23 16:01:20 jperkin Exp $
 # -----------------------------------------------------------------------------
 # Package metadata
 #
@@ -102,7 +102,7 @@
 .  if ${stage} == 0
 CONFIGURE_ENV+=        CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}
 .  else
-CONFIGURE_ENV+=        CONF_HC_OPTS_STAGE${stage}=-fPIC\ -pie
+CONFIGURE_ENV+=        CONF_HC_OPTS_STAGE${stage}=-fPIC\ ${_OPSYS_SUPPORTS_MKPIE:D-pie}
 CONFIGURE_ENV+=        CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}\ -fPIC
 .  endif
 .endfor



Home | Main Index | Thread Index | Old Index