pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ghc90



Module Name:    pkgsrc
Committed By:   pho
Date:           Thu Feb 24 09:18:09 UTC 2022

Modified Files:
        pkgsrc/lang/ghc90: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/ghc90/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/ghc90/Makefile
diff -u pkgsrc/lang/ghc90/Makefile:1.18 pkgsrc/lang/ghc90/Makefile:1.19
--- pkgsrc/lang/ghc90/Makefile:1.18     Sun Feb  6 05:31:57 2022
+++ pkgsrc/lang/ghc90/Makefile  Thu Feb 24 09:18:09 2022
@@ -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_STA
 # 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
 



Home | Main Index | Thread Index | Old Index