Last active
February 11, 2017 18:37
-
-
Save cartazio/abb9b0159cc4214cd81e0d7afbf9dd24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> set -xl MACOSX_DEPLOYMENT_TARGET 10.9 | |
> set -xl CC (which gcc-6) | |
> ./configure --with-nm=(xcrun --find nm-classic) ac_cv_func_clock_gettime=no | |
> cp mk/build.mk.sample mk/build.mk | |
# edit build.mk to add the following lines | |
``` | |
# Uncomment the following to force `integer-gmp` to use the in-tree GMP 5.0.4 | |
# (other sometimes useful configure-options: `--with-gmp-{includes,libraries}`) | |
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp | |
# Enable pretty hyperlinked sources | |
HADDOCK_DOCS = YES | |
EXTRA_HADDOCK_OPTS += --hyperlinked-source | |
# Don't strip debug and other unneeded symbols from libraries and executables. | |
STRIP_CMD = : | |
SplitObjs = YES | |
HADDOCK_DOCS = YES | |
BUILD_SPHINX_HTML = YES | |
BUILD_SPHINX_PDF = YES | |
``` | |
> make -j6 | |
.... | |
after everything builds | |
> make binary-dist | |
# open the resulting tar.xz in a new location/directory | |
> ./configure --with-gcc=(which clang) --prefix=/Users/carter/.install-ghc/ghc-8.0.2 | |
> make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment