Opened 20 years ago
Closed 20 years ago
#1563 closed enhancement (fixed)
Patch for configure to autodetect CPU on MacOS X (PPC and Intel)
Reported by: | 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)
Change History (4)
by , 20 years ago
Attachment: | configure.patch added |
---|
comment:2 by , 20 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
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 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.
MacOS X autodetect CPU patch