--- src/htslib-1.7/Makefile.Rhtslib 2018-10-30 20:47:25.000000000 +0100 +++ src/htslib-1.7/Makefile.Rhtslib 2018-10-30 20:47:25.000000000 +0100 @@ -43,7 +43,7 @@ #CFLAGS = -g -Wall -O2 -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D__FUNCTION__=__func__ CFLAGS = -g -Wall -O2 EXTRA_CFLAGS_PIC = -fpic -LDFLAGS = +LDFLAGS = "-L${PREFIX}/lib" LIBS = $(htslib_default_libs) prefix = /usr/local