pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Support PKGSRC_MKPIE
details: https://anonhg.NetBSD.org/pkgsrc/rev/576b22e8109f
branches: trunk
changeset: 372029:576b22e8109f
user: pho <pho%pkgsrc.org@localhost>
date: Tue Jan 18 02:24:36 2022 +0000
description:
Support PKGSRC_MKPIE
diffstat:
mk/haskell.mk | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r e9f4d5c1e014 -r 576b22e8109f mk/haskell.mk
--- a/mk/haskell.mk Tue Jan 18 02:23:05 2022 +0000
+++ b/mk/haskell.mk Tue Jan 18 02:24:36 2022 +0000
@@ -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-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