aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-08-19 13:53:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-08-19 13:53:57 -0400
commit7b029b9a5316bac78fce24876cdae3fb9abddbaa (patch)
treea6a3530b2ccbd6ea81265ce9b02675bcef57ba20 /Makefile
parent7b2667698061f27898092e7e53f6f2cf316b8036 (diff)
Makefile: Pass LDFLAGS, CFLAGS, and CPPFLAGS through ghc and on to ld, cc, and cpp.
As a result of the Makefile changes, the Debian package is built with various hardening options. Although their benefit to a largely haskell program is unknown.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bc027fc89..1e657d0da 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ build: $(all)
Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs
if [ "$(CABAL)" = ./Setup ]; then ghc --make Setup; fi
- $(CABAL) configure
+ $(CABAL) configure --ghc-options="$(shell Build/collect-ghc-options.sh)"
git-annex: Build/SysConfig.hs
$(CABAL) build