#47426: Add OpenCoarrays dependency for gcc5 -----------------------+-------------------------------- Reporter: damian@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gcc5 | -----------------------+-------------------------------- Comment (by fanfarillo.gcc@…): Hi everyone, I'm a new entry of the Mac and Macports world, please be patient :). I'm trying to make the port for OpenCoarrays (Portfile attached) but I encountered some problems in doing it. Before describing the problems I summarise how it should work. OpenCoarrays is a communication library based on MPI. A user who wants to use the coarray support provided by GFortran 5.1 has to link his/her program with the OpenCoarrays library called libcaf_mpi. Assuming that the source file is called coarray_test.f90 what I am expecting to see is the following: mpif90 -fcoarray=lib coarray_test.f90 -lcaf_mpi -o test. This syntax works only Linux when the path to libcaf_mpi.a is in the LIBRARY_PATH environment variable. With the Portfile attached I'm able to download and build correctly but Macports saves the library (libcaf_mpi.a) in / (which generates a warning). How can I save the file in a different location? How can I set the LIBRARY_PATH environment variable from the Portfile? Thanks for your support. Alessandro -- Ticket URL: <https://trac.macports.org/ticket/47426#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X