conda-forge / abinit-feedstock

A conda-smithy repository for abinit.
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Conda packages for MacOSX #27

Open gmatteo opened 4 years ago

gmatteo commented 4 years ago

Issue:

Any plans to provide conda packages for MacOSX? I remember I had to tune the recipe of the abiconda channel to build portable binaries for Mac. In particular I had to use:

# conda-installed gfortran on OSX: builds fail at runtime 
# https://github.com/ContinuumIO/anaconda-issues/issues/739
export LDFLAGS="$LDFLAGS -L$PREFIX/lib -Wl,-rpath,$PREFIX/lib"

# See https://github.com/Homebrew/legacy-homebrew/issues/20233
# For install_name_tool to work when the install names are larger the binary should be built with 
# the ld(1) -headerpad_max_install_names option.
export FC_LDFLAGS_EXTRA="-Wl,-headerpad_max_install_names"

export CFLAGS="$CFLAGS -g -O2 -fPIC -I$PREFIX/include"
export FCFLAGS="-O2 -g -ffree-line-length-none -Wl,-rpath,${CONDA_PREFIX}/lib" 
jan-janssen commented 4 years ago

Currently libxc is only built for Linux on conda-forge https://anaconda.org/conda-forge/libxc but I am the maintainer of that one as well, so let me take a look.

ltalirz commented 3 years ago

Just mentioning that an osx build is available for libxc from version 5.1.0 https://anaconda.org/conda-forge/libxc/files

If abinit can work with that version, go ahead with the osx build!