From ac6f23257212eee73fe4be56845282902b203b94 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Sat, 27 Apr 2019 00:36:24 +0100
Subject: [PATCH 18/18] Use LAPACK_LDFLAGS in Rlapack_la_LIBADD

---
 src/modules/lapack/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/lapack/Makefile.in b/src/modules/lapack/Makefile.in
index a9c691d463..84ee34cc0b 100644
--- a/src/modules/lapack/Makefile.in
+++ b/src/modules/lapack/Makefile.in
@@ -46,7 +46,7 @@ Rlapack_la_OBJECTS = $(LIBOBJECTS)
 ## needed being loaded into R.bin/libR.so, and that need not be the
 ## case for a static libfortran or if a package is compiled under a
 ## different compiler.
-Rlapack_la_LIBADD =  $(FLIBS_IN_SO) @DYLIB_UNDEFINED_ALLOWED_FALSE@ $(LIBR)
+Rlapack_la_LIBADD =  @LAPACK_LDFLAGS@ $(FLIBS_IN_SO) @DYLIB_UNDEFINED_ALLOWED_FALSE@ $(LIBR)
 
 ALL_CFLAGS = $(ALL_CFLAGS_LO)
 ALL_FFLAGS = $(ALL_FFLAGS_LO)
-- 
2.20.1

