Page MenuHomeFreeBSD

- Fix build on i386
ClosedPublic

Authored by farrokhi on Sep 1 2015, 2:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 7:27 AM
Unknown Object (File)
Fri, Apr 5, 7:59 AM
Unknown Object (File)
Fri, Apr 5, 7:58 AM
Unknown Object (File)
Fri, Apr 5, 7:58 AM
Unknown Object (File)
Fri, Apr 5, 7:58 AM
Unknown Object (File)
Fri, Apr 5, 7:52 AM
Unknown Object (File)
Feb 29 2024, 10:52 PM
Unknown Object (File)
Feb 2 2024, 11:10 AM
Subscribers
None

Details

Summary
  • Fix build on i386 as suggested by Pavel Odintsov <pavel.odintsov@gmail.com>

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

farrokhi retitled this revision from to - Fix build on i386.
farrokhi updated this object.
farrokhi edited the test plan for this revision. (Show Details)
farrokhi added reviewers: philip, mat, bapt.

I'm not sure I understand what it does.
Does this mean it needs at least an i586 to build ?

In D3543#72764, @mat wrote:

I'm not sure I understand what it does.
Does this mean it needs at least an i586 to build ?

Yes. It builds on i586 and above.

Because, as I read this, it's about like "if we're an i386, and it's not an i586, do as if we're an i586 anyway."

In that case, adding:

CFLAGS_i386= -march=i586

will do the same, and you don't need bsd.port.pre.mk.

Do I need a += instead of = ?

Do I need a += instead of = ?

If CFLAGS_i386 is already defined earlier, just append to it. If it is not, then no.

farrokhi edited edge metadata.
  • Improved version of previous patch
mat edited edge metadata.

In the commit message, you may add a note about it not working if <i586, explaining a bit why the change is needed :-)

This revision is now accepted and ready to land.Sep 1 2015, 8:16 PM
This revision was automatically updated to reflect the committed changes.