[MacPorts] #50327: pfft: Build without --disable-shared

MacPorts noreply at macports.org
Thu Jan 14 06:49:52 PST 2016


#50327: pfft: Build without --disable-shared
-----------------------------+--------------------------------
 Reporter:  michael-lists@…  |      Owner:  macports-tickets@…
     Type:  enhancement      |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.4
 Keywords:                   |       Port:  pfft
-----------------------------+--------------------------------
 The pfft port builds just fine without the ''--disable-shared'' configure
 flag. The patch below removes it, which is useful for anyone who wants to
 use PFFT as a dynamic library. Because PFFT does not link to FFTW3 by
 itself, FFTW3 needs to be explicitly added to the ''LDFLAGS''.
 {{{
 --- ports/math/pfft/Portfile    2015-10-21 17:30:57.000000000 +0200
 +++ ports/math/pfft/Portfile    2016-01-14 15:46:15.000000000 +0100
 @@ -44,7 +44,7 @@
      }

      configure.args-append  MPICC=${mpi.cc} MPIFC=${mpi.f90} \
 -        CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix} --disable-shared
 +        CPPFLAGS=-I${prefix}/include LDFLAGS="-L${prefix} -lfftw3
 -lfftw3_mpi"
  }

  livecheck.type  regex
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/50327>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list