[MacPorts] #60432: base: (linux) arch flags are not recognized by linux compilers
MacPorts
noreply at macports.org
Mon May 4 15:50:59 UTC 2020
#60432: base: (linux) arch flags are not recognized by linux compilers
--------------------+--------------------
Reporter: kencu | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Keywords: linux | Port:
--------------------+--------------------
On Ubuntu, {{{gcc}}} errors when it is given an {{{arch}}} flag on the
build line. The {{{darwin}}} builds of {{{gcc}}} accepts {{{arch}}} but
the linux version does not.
{{{clang}}} accepts the {{{arch}}} flags, but doesn't use them, and issues
a warning that the flag is unrecognized. This can generate configure
errors.
The archflags can be manually cleared in the portfiles by setting them all
to empty strings, like we do in the gcc Portfiles.
In base, I tried overriding {{{portconfigure::arch_flag_supported}}} to
return {{{no}}} on linux, but that then resulted in another error that
said (something like)
{{{
error: cc has no archflags
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60432>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list