• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/clapack/0001-cmake-force-libf2c-to-be-built-as-a-static-library.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 4fe2f454e454d9e6b1e83b2ea67581990461ed36 Mon Sep 17 00:00:00 2001
2
From: Samuel Martin <s.martin49@gmail.com>
3
Date: Sat, 11 Jan 2014 22:05:25 +0100
4
Subject: [PATCH 1/6] cmake: force libf2c to be built as a static library
5
​
6
As stated in INSTALL/LAPACK_version.c, liblapack requires to be linked
7
against the static library of libf2c.
8
​
9
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
10
---
11
 F2CLIBS/libf2c/CMakeLists.txt | 7 ++++++-
12
 1 file changed, 6 insertions(+), 1 deletion(-)
13
​
14
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
15
index 43d7b3f..f98d66a 100644
16
--- a/F2CLIBS/libf2c/CMakeLists.txt
17
+++ b/F2CLIBS/libf2c/CMakeLists.txt
18
@@ -58,5 +58,10 @@ if(WIN32)
19
 endif()
20
 include_directories(${CLAPACK_SOURCE_DIR}/F2CLIBS/libf2c)
21
 include_directories(${CLAPACK_BINARY_DIR}/F2CLIBS/libf2c)
22
-add_library(f2c ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
23
+add_library(f2c STATIC ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
24
 set_property(TARGET f2c PROPERTY PREFIX lib)
25
+# Set fPIC on the library when build shared libraries is enabled, because
26
+# libf2c.a will most likely be included by some shared libraries in such cases.
27
+if(UNIX AND BUILD_SHARED_LIBS)
28
+  set_target_properties(f2c PROPERTIES COMPILE_FLAGS "-fPIC")
29
+endif()
30
-- 
31
1.8.5.3
32
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.