InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Snow Leopard 10.6 (http://infinitemac.com/forumdisplay.php?f=87)
-   -   (guide) How to compile with homebrew in AMD (http://infinitemac.com/showthread.php?t=7698)

ghostec 05-30-2012 04:25 AM

(guide) How to compile with homebrew in AMD
 
I was having this problem, without this workaroung it is very likely that you (AMD user) won't be able to compile anything with homebrew.

The thing that need to be done is:

Open /usr/local/Library/homebrew/extend/ENV.rb and search for the lines starting with set_cpu_cflags then comment with a # before or change the entire line to set_cpu_cflags "arch -i386"

This way it won't be needed to edit formula by formula of the programs you want to compile and you will be able to use homebrew.

ghostec 05-30-2012 06:50 PM

I did a fork in homebrew (github) to help ones wanting to use it oob: https://github.com/ghostec/homebrew/tree/homebrew4amd