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: Tue Jan 18 02:24:36 UTC 2022
Modified Files:
pkgsrc/mk: haskell.mk
Log Message:
Support PKGSRC_MKPIE
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 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.36 pkgsrc/mk/haskell.mk:1.37
--- pkgsrc/mk/haskell.mk:1.36 Mon Sep 27 14:30:47 2021
+++ pkgsrc/mk/haskell.mk Tue Jan 18 02:24:36 2022
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.36 2021/09/27 14:30:47 nia Exp $
+# $NetBSD: haskell.mk,v 1.37 2022/01/18 02:24:36 pho Exp $
#
# This Makefile fragment handles Haskell Cabal packages.
# Package configuration, building, installation, registration and
@@ -43,8 +43,6 @@
.if !defined(HASKELL_MK)
HASKELL_MK= # defined
-MKPIE_SUPPORTED= no
-
.include "../../mk/bsd.fast.prefs.mk"
HS_UPDATE_PLIST?= no
@@ -142,6 +140,11 @@ CONFIGURE_ARGS+= --with-compiler=${_HASK
CONFIGURE_ARGS+= --with-hc-pkg=${_HASKELL_PKG_BIN:Q}
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+PKGSRC_OVERRIDE_MKPIE= yes
+.if ${_PKGSRC_MKPIE} == "yes"
+CONFIGURE_ARGS+= --ghc-option=-fPIC --ghc-option=-pie
+.endif
+
.if ${HASKELL_ENABLE_SHARED_LIBRARY} == "yes"
CONFIGURE_ARGS+= --enable-shared --enable-executable-dynamic
.else
Home |
Main Index |
Thread Index |
Old Index