--- src/Makevars	2015-01-21 14:18:54.000000000 +0700
+++ src/Makevars	2023-09-24 06:18:42.000000000 +0700
@@ -1,12 +1,5 @@
-
-# set by configure
-GSL_FLAGS = `pkg-config gsl --cflags`
-GSL_LIBS = `pkg-config  gsl --libs`
-
-
 # combine with standard arguments for R
-PKG_CPPFLAGS = $(GSL_CFLAGS) -I../inst/include
+PKG_CPPFLAGS = -I@PREFIX@/include/gsl -I../inst/include
 
 ## Use the R_HOME indirection to support installations of multiple R version
-PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(GSL_LIBS) 
-
+PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) -L@PREFIX@/lib -lgsl -lgslcblas
