pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Be explicit about shared libraries



details:   https://anonhg.NetBSD.org/pkgsrc/rev/24eb6c0e0ed2
branches:  trunk
changeset: 346695:24eb6c0e0ed2
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu Jan 02 16:45:15 2020 +0000

description:
Be explicit about shared libraries

Recent versions of Cabal appears to build shared libraries by default unless --disable-shared is explicitly given.

diffstat:

 mk/haskell.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7ad1c79f6287 -r 24eb6c0e0ed2 mk/haskell.mk
--- a/mk/haskell.mk     Thu Jan 02 16:34:47 2020 +0000
+++ b/mk/haskell.mk     Thu Jan 02 16:45:15 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.9 2020/01/02 16:34:47 pho Exp $
+# $NetBSD: haskell.mk,v 1.10 2020/01/02 16:45:15 pho Exp $
 #
 # This Makefile fragment handles Haskell Cabal packages.
 # See: http://www.haskell.org/cabal/
@@ -173,11 +173,15 @@
 # Shared libraries
 .if ${HASKELL_ENABLE_SHARED_LIBRARY} == "yes"
 CONFIGURE_ARGS+=       --enable-shared --enable-executable-dynamic
+.else
+CONFIGURE_ARGS+=       --disable-shared --disable-executable-dynamic
 .endif
 
 # Library profiling
 .if ${HASKELL_ENABLE_LIBRARY_PROFILING} == "yes"
-CONFIGURE_ARGS+=       -p
+CONFIGURE_ARGS+=       --enable-library-profiling
+.else
+CONFIGURE_ARGS+=       --disable-library-profiling
 .endif
 
 



Home | Main Index | Thread Index | Old Index