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, Jan 20, 1:14 PM
Unknown Object (File)
Wed, Jan 15, 3:53 PM
Unknown Object (File)
Jan 13 2025, 8:03 AM
Unknown Object (File)
Dec 9 2024, 1:44 PM
Unknown Object (File)
Dec 9 2024, 1:04 PM
Unknown Object (File)
Nov 17 2024, 1:03 PM
Unknown Object (File)
Nov 13 2024, 10:27 AM
Unknown Object (File)
Oct 24 2024, 4:56 PM
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.