Homebrew build with different arch?
- by StasM
I tried to install mysql-connector-c recipe via homebrew, and it builds just fine, but produces x86_64 library:
$file ~/brew/lib/libmysql.dylib
.../brew/lib/libmysql.dylib: Mach-O 64-bit dynamically linked shared library x86_64
I however need i386 library for my project. I tried to give it CFLAGS and LDFLAGS like this:
CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" brew install mysql-connector-c
but nothing changes - it still builds x86_64 only binary. Is there any way to make homebrew build either dual arch library or i386 library? I have kernel architecture set to x86_64, if it matters.