Opened 13 years ago

Closed 13 years ago

#1563 closed enhancement (fixed)

Patch for configure to autodetect CPU on MacOS X (PPC and Intel)

Reported by: mino@… Owned by: Nigel
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

This patch will automatically detect the host CPU for MacOS X systems. It works for both PowerPC and Intel. It also removes the memalignhack for MacOS X builds since allocation on MacOS X always returns an aligned address.

Attachments (1)

configure.patch (1.8 KB) - added by mino@… 13 years ago.
MacOS X autodetect CPU patch

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by mino@…

Attachment: configure.patch added

MacOS X autodetect CPU patch

comment:1 Changed 13 years ago by Nigel

(In [9452]) Auto-detect Intel on Mac OS X. See #1563

comment:2 Changed 13 years ago by Nigel

Owner: changed from Isaac Richards to Nigel
Status: newassigned

I have applied this, mostly as given. I suspect there will be some negotiation of what P6 actually means, and what ARCHFLAGS should actually be for an Intel Core chip, though.
e.g. -march=pentium-m -sse -sse2 -sse3 -mmx

comment:3 Changed 13 years ago by Nigel

Resolution: fixed
Status: assignedclosed

The PPC part of this is working fine. It gives me CPU-optimised builds by default, which isn't what packagers want, but they should be smart enough to remove the optimisation if needed.


I haven't seen any discussion of X86 flags on the Wiki, so I will assume that everyone is happy for now.

Note: See TracTickets for help on using tickets.