removing -arch from LDFLAGS

Ryan Schmidt ryandesign at macports.org
Wed Nov 13 01:12:36 PST 2013


On Nov 12, 2013, at 09:55, Michael Dickens wrote:

> Hi David - gfortran, and non-Apple GCC in general, uses -m32 and -m64 to build for whatever the host arch is.

With any compiler you can use -m flags. With Apple GCC, llvm-gcc, clang, and FSF GCC 4.7 and later, for C and C++ code, you can use -arch flags. MacPorts knows this and sets configure.XX_archflags correctly based on what configure.compiler is; the problem is with the gfortran recipe we’re not setting configure.compiler so configure.ld_archflags could still include -arch flags even though gfortran doesn’t support them.



More information about the macports-dev mailing list