aboutsummaryrefslogtreecommitdiff
path: root/ports/clapack/link-to-math-lib.patch
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2019-05-03 20:43:10 +0200
committerVictor Romero <romerosanchezv@gmail.com>2019-05-03 11:43:10 -0700
commitdf482edfd946958dc4bad5ce6b9a8ad3a0d2bee4 (patch)
tree1259b85aae2940a7ee4a2056257547a6dfd18a9e /ports/clapack/link-to-math-lib.patch
parent050e71d01dc9e65e6cdf1d13534fc14889e4ae38 (diff)
downloadvcpkg-df482edfd946958dc4bad5ce6b9a8ad3a0d2bee4.tar.gz
vcpkg-df482edfd946958dc4bad5ce6b9a8ad3a0d2bee4.zip
[clapack] port patch from #5169 (#6291)
Diffstat (limited to 'ports/clapack/link-to-math-lib.patch')
-rw-r--r--ports/clapack/link-to-math-lib.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/clapack/link-to-math-lib.patch b/ports/clapack/link-to-math-lib.patch
new file mode 100644
index 000000000..c80a8d4ed
--- /dev/null
+++ b/ports/clapack/link-to-math-lib.patch
@@ -0,0 +1,12 @@
+diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
+index 2bdbd05..ca1473f 100644
+--- a/F2CLIBS/libf2c/CMakeLists.txt
++++ b/F2CLIBS/libf2c/CMakeLists.txt
+@@ -59,4 +59,7 @@ endif()
+ include_directories(${CLAPACK_SOURCE_DIR}/F2CLIBS/libf2c)
+ include_directories(${CLAPACK_BINARY_DIR}/F2CLIBS/libf2c)
+ add_library(f2c STATIC ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
++if(UNIX)
++ target_link_libraries(f2c m)
++endif()
+ set_property(TARGET f2c PROPERTY PREFIX lib)