diff -Nru orig/cytolib/src/Makevars.ucrt patched/cytolib/src/Makevars.ucrt
--- orig/cytolib/src/Makevars.ucrt	2024-10-24 04:10:54.000000000 +0200
+++ patched/cytolib/src/Makevars.ucrt	2025-01-29 14:15:48.482918400 +0100
@@ -17,8 +17,8 @@
 
 	
 #needs to wrap in $(shell) to strip the quotes returned by rhdf5lib::pkgconfig
-RHDF5_LIBS= $(shell "${R_HOME}/bin/Rscript" -e "Rhdf5lib::pkgconfig('PKG_CXX_LIBS')")
-PKG_LIBS =  ${boost_fs_objs} ${boost_sys_objs} $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) `${R_HOME}/bin/Rscript -e "RProtoBufLib:::LdFlags()"` $(RHDF5_LIBS) `${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()"` -lws2_32  -lbcrypt
+RHDF5_LIBS= $(shell "${R_HOME}/bin$(R_ARCH_BIN)/Rscript" -e "Rhdf5lib::pkgconfig('PKG_CXX_LIBS')")
+PKG_LIBS =  ${boost_fs_objs} ${boost_sys_objs} $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(shell "${R_HOME}/bin$(R_ARCH_BIN)/Rscript" -e "RProtoBufLib:::LdFlags()") $(RHDF5_LIBS) $(shell "${R_HOME}/bin$(R_ARCH_BIN)/Rscript" -e "RcppParallel::RcppParallelLibs()") -lws2_32  -lbcrypt
 
 .PHONY: all clean 
 
