# macos-fink-gcc # # fink is a package manager for Mac OS based on Debian. It contains # ports of common open-source packages to Mac OS. This optionlist # configures Cactus to use packages installed using fink. # # Notes: # # - Cactus will be compiled with the same architecture as your fink # installation, i.e. 32 or 64 bit. # # If you do not have fink already installed, here are some # instructions for setting up fink on Mac OS 10.6 in 64 bit mode using # binary packages from the unofficial "Scott" repository (there are no # official binary packages for Mac OS 10.6). No compilation from # source is required. These instructions have been adapted from # http://sage.ucsc.edu/~wgscott/xtal/wiki/index.php/64-bit_Fink_for_10.6 # # Install the Developer Tools from the Mac OS DVD. # # Download the base fink package: # curl -O http://psbmini.ucsc.edu/fink_intel_10.6_64bit_sw/sw_fink_64bit_baseinstall.tgz # # Unpack it: # tar xfz sw_fink_64bit_baseinstall.tgz # # Install it (ensure you do not have an existing /sw directory): # sudo mv sw / # # Set up PATH etc in the current shell: # source /sw/bin/init.sh # # You should also place that line in your .profile so that all shells # have access to fink. # # Update fink and the repository information to the latest versions: # fink selfupdate # fink -y update-all # fink scanpackages # sudo apt-get update # # Fink is now ready to use. Install the required packages: # sudo apt-get install gcc44 gsl hdf5-18 hdf5-18-gfortran szip # # ("fink -b install " should work as well, but for some # reason currently builds from source instead of installing the # binaries) # Whenever this version string changes, the application is configured # and rebuilt from scratch VERSION = 2011-03-13 CPP = /sw/bin/cpp-4 FPP = /sw/bin/cpp-4 CC = /sw/bin/gcc-4 CXX = /sw/bin/g++-4 F77 = /sw/bin/gfortran F90 = /sw/bin/gfortran # -fmudflapth does not work with current gcc 4.2.0 # -march=prescott and -march=core2 lead to an ICE # -march=native prevents undefined references to ___sync_fetch_and_add_4 # -malign-double may lead to crashes in Fortran I/O CPPFLAGS = FPPFLAGS = -traditional CFLAGS = -g3 -fshow-column -mmacosx-version-min=10.5 -m128bit-long-double -std=gnu99 -march=native CXXFLAGS = -g3 -fshow-column -mmacosx-version-min=10.5 -m128bit-long-double -march=native F77FLAGS = -g3 -fshow-column -mmacosx-version-min=10.5 -m128bit-long-double -fcray-pointer -march=native F90FLAGS = -g3 -fshow-column -mmacosx-version-min=10.5 -m128bit-long-double -fcray-pointer -march=native LDFLAGS = -rdynamic /System/Library/Frameworks/vecLib.framework/vecLib C_LINE_DIRECTIVES = yes F_LINE_DIRECTIVES = yes REAL16_KIND = 10 VECTORISE = yes VECTORISE_ALIGNED_ARRAYS = no VECTORISE_INLINE = no VECTORISE_STREAMING_STORES = no DEBUG = no CPP_DEBUG_FLAGS = -DCARPET_DEBUG FPP_DEBUG_FLAGS = -DCARPET_DEBUG C_DEBUG_FLAGS = -fbounds-check -ftrapv -fstack-protector-all CXX_DEBUG_FLAGS = -fbounds-check -ftrapv -fstack-protector-all F77_DEBUG_FLAGS = -fbounds-check -ftrapv -fstack-protector-all F90_DEBUG_FLAGS = -fbounds-check -ftrapv -fstack-protector-all OPTIMISE = yes CPP_OPTIMISE_FLAGS = # -DCARPET_OPTIMISE -DNDEBUG FPP_OPTIMISE_FLAGS = # -DCARPET_OPTIMISE -DNDEBUG C_OPTIMISE_FLAGS = -O2 CXX_OPTIMISE_FLAGS = -O2 F77_OPTIMISE_FLAGS = -O2 F90_OPTIMISE_FLAGS = -O2 PROFILE = no CPP_PROFILE_FLAGS = FPP_PROFILE_FLAGS = C_PROFILE_FLAGS = -pg CXX_PROFILE_FLAGS = -pg F77_PROFILE_FLAGS = -pg F90_PROFILE_FLAGS = -pg OPENMP = yes CPP_OPENMP_FLAGS = -fopenmp FPP_OPENMP_FLAGS = -fopenmp C_OPENMP_FLAGS = -fopenmp CXX_OPENMP_FLAGS = -fopenmp F77_OPENMP_FLAGS = -fopenmp F90_OPENMP_FLAGS = -fopenmp WARN = yes CPP_WARN_FLAGS = -Wall FPP_WARN_FLAGS = -Wall C_WARN_FLAGS = -Wall CXX_WARN_FLAGS = -Wall F77_WARN_FLAGS = -warn all F90_WARN_FLAGS = -warn all BLAS_DIR = /System/Library/Frameworks/vecLib.framework GSL_DIR = /sw HDF5_DIR = /sw ZLIB_DIR = /usr LIBSZ_DIR = /sw LAPACK_DIR = /System/Library/Frameworks/vecLib.framework LAPACK_LIBS = MPI = OpenMPI MPI_LIBS = mpi OPENSSL_DIR = /usr PTHREADS = yes