Homebrew build with different arch?
Posted
by
StasM
on Super User
See other posts from Super User
or by StasM
Published on 2011-09-04T03:11:35Z
Indexed on
2012/10/25
17:03 UTC
Read the original article
Hit count: 255
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.
© Super User or respective owner