spack/var/spack/repos/builtin/packages/cosmomc/Makefile.patch
Erik Schnetter 2ac343e92e cosmomc: New package CosmoMC (#3292)
* cosmomc: New package CosmoMC

* cosmomc: Improve version numbering scheme

* planck-likelihood: New package

* cosmomc: Pacify flake8

* cosmomc: Code cleanup as requested in the review

* cosmomc: Various updates suggested during review

* cosmomc: Limit compiler versions (as documented in the build instructions)

* cosmomc: Correct flake8 error

* cosmomc: Use `libs` instead of `lapack_libs`

* planck-likelihood: Make makefile output more verbose and readable

* planck-likelilhood: Correct order of libraries when calling linker

* cosmomc: Clean up check for suitable compiler

* planck-likelihood: Use modern mechanism to set environment variables
2017-03-09 08:14:13 -06:00

27 lines
627 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,7 @@
rebuild: clean delete cosmomc
-cosmomc: BUILD ?= MPI
-cosmomc_debug: BUILD ?= MPI
+BUILD ?= MPI
getdist: ./source/*.*90
cd ./source && make getdist BUILD=$(BUILD)
--- a/source/Makefile
+++ b/source/Makefile
@@ -57,11 +57,7 @@
#commented above is (I think) for Mac; this is standard linux (sudo apt-get install liblapack-dev)
LAPACKL = -lblas -llapack
-#march native does not work on Mac, otherwise use (comment out if your cluster is inhomogeneous)
-ifneq ($(shell uname -s),Darwin)
-#native optimization does not work on Mac
FFLAGS+=-march=native
-endif
endif