diff -up cfitsio-4.1.0/configure.rpath cfitsio-4.1.0/configure --- cfitsio-4.1.0/configure.rpath 2022-08-23 21:21:35.166112312 -0600 +++ cfitsio-4.1.0/configure 2022-08-23 21:35:59.586014956 -0600 @@ -5036,7 +5036,7 @@ case $host in printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h # LDFLAGS used by utilities: - LDFLAGS_BIN="$LDFLAGS_BIN -Wl,-rpath,\${CFITSIO_LIB}" + LDFLAGS_BIN="$LDFLAGS_BIN" ;; *mingw32*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for large file support" >&5