#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@…): I'm totally confused. I don't see the {{{-arch x86_64}}} flag in FFLAGS or FCFLAGS indeed. And yet, when I compile the sources outside of MacPorts with the same compiler I end up with {{{ Fortran_FLAGS = -m64 -std=legacy -fPIC -I<some includes> }}} and inside MacPorts I end up with {{{ Fortran_FLAGS = -m64 -std=legacy -O3 -arch x86_64 -fPIC -I<some includes> }}} in {{{build/misc/minicern/CMakeFiles/minicern.dir/flags.make}}} for example. However: {{{ DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/Users/mojca/.macports/opt/local/var/macports/build /_Users_mojca_app_macports_localports_science_root-devel/root- devel/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' FCFLAGS='-pipe -O2 -m64' OBJC='/usr/bin/clang' INSTALL='/usr/bin/install -c' FC='/opt/local/bin /gfortran-mp-4.5' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang' }}} I'm using the same cmake and same compilers to compile both inside and outside of MacPorts. Any clues? -- Ticket URL: <https://trac.macports.org/ticket/37732#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS