pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ghc92



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Feb 23 16:01:20 UTC 2022

Modified Files:
        pkgsrc/lang/ghc92: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/ghc92/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ghc92/Makefile
diff -u pkgsrc/lang/ghc92/Makefile:1.4 pkgsrc/lang/ghc92/Makefile:1.5
--- pkgsrc/lang/ghc92/Makefile:1.4      Thu Feb 17 15:57:07 2022
+++ pkgsrc/lang/ghc92/Makefile  Wed Feb 23 16:01:20 2022
@@ -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 @@ CONFIGURE_ENV+=     CONF_GCC_LINKER_OPTS_STA
 .  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