> On Feb 26, 2016, at 17:25, Sean Lake <odysseus9...@gmail.com> wrote:
> 
> Hello all,
> 
> I keep an up to date build of Golang on my system, and they've started 
> working on fortran interoperability. Fink provides my gfortran, and the build 
> test is failing in a way that I think I need to set an environment variable 
> that is Fink dependent to make it work. Specifically, the build failure is:
> 
> ##### ../misc/cgo/fortran
> # go tool dist test -run=^cgo_fortran$
> # _/Users/lake/goLang/go/misc/cgo/fortran
> ld: library not found for -lgfortran
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> FAIL  _/Users/lake/goLang/go/misc/cgo/fortran [build failed]
> FAIL: go test
> 2016/02/26 17:14:53 Failed: exit status 1
> 
> So, what environment variable do I need to set for the linker to be able to 
> find the gfortran libraries? I have the following installed:
> 
> i   gcc5             5.3.0-1      GNU Compiler Collection Version 5
> i   gcc5-compiler    5.3.0-1      Compiler Binaries for gcc5
> i   gcc5-shlibs      5.3.0-1      Shared libraries for gcc5
> 
> fink --version
> Package manager version: 0.39.2
> Distribution version: selfupdate-rsync Thu Feb 25 14:46:40 2016, 10.10, x86_64
> Trees: local/main stable/main
> 
> Thanks,
> Sean Lake
> 
> 

Try prepending or appending -L/sw/lib/gcc5/lib to LDFLAGS.  

-- 
Alexander Hansen, Ph.D.
Fink User Liaison


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to