pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk
Module Name: pkgsrc
Committed By: pho
Date: Sat Feb 26 03:55:37 UTC 2022
Modified Files:
pkgsrc/mk: haskell.mk
Log Message:
mk/haskell.mk: Enable --enable-split-sections
Ask GHC to put each compiled function in a separate section and ld(1) to
perform GC. This greatly reduces the size of executables linked with static
Haskell libraries. For example, lang/purescript shrinks down from 104 MiB
to 57 MiB! Reduced storage use means reduced I/O cost!
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/mk/haskell.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/haskell.mk
diff -u pkgsrc/mk/haskell.mk:1.42 pkgsrc/mk/haskell.mk:1.43
--- pkgsrc/mk/haskell.mk:1.42 Wed Feb 23 16:03:00 2022
+++ pkgsrc/mk/haskell.mk Sat Feb 26 03:55:37 2022
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.42 2022/02/23 16:03:00 pho Exp $
+# $NetBSD: haskell.mk,v 1.43 2022/02/26 03:55:37 pho Exp $
#
# This Makefile fragment handles Haskell Cabal packages. Package
# configuration, building, installation, registration and unregistration
@@ -182,6 +182,7 @@ CONFIGURE_ARGS+= --with-haddock=${BUILDL
.endif
CONFIGURE_ARGS+= -O${HASKELL_OPTIMIZATION_LEVEL}
+CONFIGURE_ARGS+= --enable-split-sections
# Support RELRO. When PKGSRC_USE_RELRO isn't set to "no",
# mk/compiler/{ghc,clang}.mk add "-Wl,-z,relro" and optionally
Home |
Main Index |
Thread Index |
Old Index