removing -arch from LDFLAGS

Michael Dickens michaelld at macports.org
Tue Nov 12 08:29:16 PST 2013


In general, I think you're better off just doing:

{{{

configure.ld_archflags

}}}

unless you are intentionally using muniversal but not allowing building
as universal. If you're not building as universal,
then configure.ld_archflags should contain just a single arch setting,
so this would be one way to clear it.  I don't remember if that setting
is tailored to the specific configure.compiler being used, but I
thought it was. If not, it's pretty easy to add it yourself; or, just
leave it alone to get the default (i.e., 32-bit on a 32-bit native host
processor; 64-bit on a 64-bit native processor). - MLD



On Tue, Nov 12, 2013, at 11:16 AM, David Strubbe wrote:

Thanks. Well, let us suppose I am not concerned with building universal
for time being: then it sounds like

configure.ld_archflags-delete -arch ${arch}

is the appropriate approach for gfortran, since -m32/-m64 are preserved
in the LDFLAGS. Right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131112/095ba813/attachment.html>


More information about the macports-dev mailing list