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.

link|improve this question
feedback

1 Answer

you may try the following:

brew edit mysql-connector-c

and then modify the initialization in the "install" block.

though I did not try this out, but u r supposed to do something like this:

ENV['CFLAGS']='xxx'
ENV['LDFLAGS']='xxx'

you might check the example here: http://www.insanelymac.com/forum/index.php?showtopic=274697

link|improve this answer
So what would I put there? CFLAGS definitions? – StasM Apr 16 at 6:49
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.