summaryrefslogtreecommitdiff
path: root/lang/ghc88
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2020-01-15 05:46:55 +0000
committerpho <pho@pkgsrc.org>2020-01-15 05:46:55 +0000
commit4feb05e1f27a0af0e2f6ed5ce03a214e8fa01505 (patch)
treed2e84d514d0a9bba146d7a6e5d1aa6b0bcadef10 /lang/ghc88
parent22de473d1fd9cbeb3c0d9aaf7586cf80d3d89c5e (diff)
downloadpkgsrc-4feb05e1f27a0af0e2f6ed5ce03a214e8fa01505.tar.gz
Tidy up comments; no actual changes
Diffstat (limited to 'lang/ghc88')
-rw-r--r--lang/ghc88/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/lang/ghc88/Makefile b/lang/ghc88/Makefile
index 8f56cbaa943..4f27c0eabee 100644
--- a/lang/ghc88/Makefile
+++ b/lang/ghc88/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/01/15 02:06:36 pho Exp $
+# $NetBSD: Makefile,v 1.6 2020/01/15 05:46:55 pho Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -49,6 +49,10 @@ GNU_CONFIGURE= yes
USE_GNU_CONFIGURE_HOST= no
USE_LIBTOOL= yes
+
+# -----------------------------------------------------------------------------
+# Configuration
+#
CONFIGURE_ARGS.common= \
--with-curses-libraries=${BUILDLINK_PREFIX.curses}/${BUILDLINK_LIBDIRS.curses:Q} \
--with-gmp-includes=${BUILDLINK_PREFIX.gmp}/${BUILDLINK_INCDIRS.gmp:Q} \
@@ -88,6 +92,10 @@ CONFIGURE_ENV+= \
# the buildlink.
.endfor
+
+# -----------------------------------------------------------------------------
+# Security
+#
# The runtime system of GHC (rts) tends to conflict with PaX MPROTECT
# because it needs to generate various kinds of code at run time. The
# RTS linker, whose job is to load *static* objects at run time,
@@ -174,6 +182,11 @@ CHECK_PORTABILITY_SKIP+= distrib/prep-bin-dist-mingw
# dependent Haskell libraries, but the problem is that they are
# specified with $ORIGIN, which isn't currently supported by
# ../../mk/check/check-shlibs-elf.awk.
+#
+# Note that arguments like "-Wl,-rpath,$ORIGIN/.." are usually dropped
+# by the "cleanup" phase of wrappers. This is not the case in GHC
+# because GHC uses @file syntax while linking objects, and our
+# wrappers does nothing about it.
CHECK_SHLIBS_SKIP+= */libHS*-ghc${PKGVERSION_NOREV}.*
.for f in ghc ghc-iserv-dyn ghc-pkg haddock hpc hsc2hs runghc
CHECK_SHLIBS_SKIP+= lib/${PKGNAME_NOREV}/bin/${f}