Skip to content

Commit

Permalink
fixing lib order on link line
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Dec 6, 2016
1 parent 790e629 commit ff393d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions config.make
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ HDF5_INC = $(HDF5_HOME)/include
HDF5_LIB = $(HDF5_HOME)/lib
HDF5_BIN = $(HDF5_HOME)/bin

LDFLAGS += -lhdf5 -lzfp

ifeq ($(PREFIX),)
PREFIX := $(shell pwd)/install
endif
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_read_lib: test_read_lib.o lib
ifneq ($(FC),)

test_rw_fortran: test_rw_fortran.o lib
$(FC) $(FCFLAGS) -o $@ $< $(PREPATH)$(HDF5_LIB) $(PREPATH)$(ZFP_LIB) -L../src -L$(HDF5_LIB) -L$(ZFP_LIB) $(LDFLAGS) -lh5zzfp -lhdf5_fortran
$(FC) $(FCFLAGS) -o $@ $< $(PREPATH)$(HDF5_LIB) $(PREPATH)$(ZFP_LIB) -L../src -L$(HDF5_LIB) -L$(ZFP_LIB) -lh5zzfp -lhdf5_fortran -lhdf5 -lzfp $(LDFLAGS)
./test_rw_fortran

%.o:%.F90
Expand Down

0 comments on commit ff393d5

Please sign in to comment.