new formula: dotwrp
This library resolves an incompatibility between gfortran and Accelerate.framework by providing gfortran-compatible entry points for a few BLAS functions that still use the f77 calling conventions. When using this library, make sure the linker sees it before Accelerate.framework, eg by using "-ldotwrp -framework Accelerate". Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5c0fab1dd9
commit
46ce3d3676
1 changed files with 18 additions and 0 deletions
18
Formula/dotwrp.rb
Normal file
18
Formula/dotwrp.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require 'formula'
|
||||
|
||||
class Dotwrp <Formula
|
||||
url 'https://github.com/tenomoto/dotwrp.git', :using => :git
|
||||
homepage 'https://github.com/tenomoto/dotwrp'
|
||||
version '1.0'
|
||||
|
||||
def install
|
||||
ENV.fortran
|
||||
|
||||
# note: fno-underscoring is vital to override the symbols in Accelerate
|
||||
system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90"
|
||||
system "/usr/bin/ar -cru libdotwrp.a dotwrp.o"
|
||||
system "/usr/bin/ranlib libdotwrp.a"
|
||||
|
||||
lib.install 'libdotwrp.a'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue