[MacPorts] #37732: fortran compilers don't accept -arch flags

MacPorts noreply at macports.org
Tue Jan 22 02:13:50 PST 2013


#37732: fortran compilers don't accept -arch flags
----------------------+--------------------------------
  Reporter:  mojca@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  closed
  Priority:  Normal   |  Milestone:
 Component:  base     |    Version:  2.1.2
Resolution:  invalid  |   Keywords:
      Port:           |
----------------------+--------------------------------

Comment (by mojca@…):

 Replying to [comment:11 jmr@…]:
 > You should probably look for the answer to the question I asked about
 CMAKE_OSX_ARCHITECTURES earlier.

 Oh, I got it now. If I use
 {{{
 cmake -DCMAKE_OSX_ARCHITECTURES="x86_64" ...
 }}}
 then I get
 {{{
 Fortran_FLAGS =  -m64 -std=legacy -arch x86_64 -fPIC -I<...>
 }}}
 in {{{misc/minicern/CMakeFiles/minicern.dir/flags.make}}} indeed. So is
 that a bug in CMake passing the wrong flags to Fortran compiler then? On
 one hand it's true that it doesn't make sense to pass more than one
 architecture to C compiler if Fortran compiler is not able to create fat
 binaries. But on the other it doesn't make any sense at all if CMake
 passes -arch to Fortran.

-- 
Ticket URL: <https://trac.macports.org/ticket/37732#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list