File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,17 @@ class Promod3 < Formula
17
17
def install
18
18
if OS . mac?
19
19
ENV . prepend "LDFLAGS" , "-undefined dynamic_lookup -Wl,-export_dynamic"
20
+
21
+ # Disable linking directly to CPython shared libraries
22
+ inreplace "cmake_support/PROMOD3.cmake" ,
23
+ /^\s *set\( CMAKE_REQUIRED_FLAGS "\$ \{ CMAKE_REQUIRED_FLAGS\} \$ \{ Python_LIBRARIES\} "\) \n ?/ , ""
24
+ inreplace "cmake_support/PROMOD3.cmake" , /\s *\$ \{ Python_LIBRARIES\} \s */ , " "
25
+
20
26
elsif OS . linux?
21
27
ENV . prepend "LDFLAGS" , "-Wl,--allow-shlib-undefined,--export-dynamic -lstdc++"
22
28
end
23
29
24
- # Disable linking directly to CPython shared libraries
25
30
inreplace "CMakeLists.txt" , "find_package(Python 3.6" , "find_package(Python 3"
26
- inreplace "cmake_support/PROMOD3.cmake" ,
27
- /^\s *set\( CMAKE_REQUIRED_FLAGS "\$ \{ CMAKE_REQUIRED_FLAGS\} \$ \{ Python_LIBRARIES\} "\) \n ?/ , ""
28
- inreplace "cmake_support/PROMOD3.cmake" , /\s *\$ \{ Python_LIBRARIES\} \s */ , " "
29
31
30
32
mkdir "build" do
31
33
cmake_args = std_cmake_args + %W[
You can’t perform that action at this time.
0 commit comments