Skip to content

Commit

Permalink
add libgfortran path finder
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Jun 24, 2021
1 parent d3fc2b3 commit c8bcb1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 88 deletions.
9 changes: 9 additions & 0 deletions cosmosis/datablock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ else
RPATH=
endif

# Find the path to libgfortran
GFORTRAN_LIB_PATH=$(shell ${FC} --print-file-name libgfortran.dylib)
ifeq (${GFORTRAN_LIB_PATH},libgfortran.dylib)
GFORTRAN_LIB_PATH=$(shell ${FC} --print-file-name libgfortran.so)
endif

ifneq ($(GFORTRAN_LIB_PATH),)
LDFLAGS+=-L $(dir ${GFORTRAN_LIB_PATH})
endif
$(info ${LDFLAGS})
all: libcosmosis.so

clean:
Expand Down
88 changes: 0 additions & 88 deletions examples/scripting-modules.py

This file was deleted.

0 comments on commit c8bcb1f

Please sign in to comment.