[LV2] OT: 32-bit Build on OSX

Michael R. Fisher mfisher31 at gmail.com
Wed Nov 26 06:29:25 PST 2014


> On Nov 26, 2014, at 2:08 AM, David Robillard <d at drobilla.net> wrote:
> 
> This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
> --cHKksm8mwoa1bgq73reGT6cd1EkklqRsx
> Content-Type: text/plain; charset=windows-1252
> Content-Transfer-Encoding: quoted-printable
> 
>> On 2014-11-25 23:55, Chris Share wrote:
>> Hi,
>> I'd like to develop lv2 plugins to use with Audacity on OSX. Audacity i=
> s currently 32-bit only on OSX. By default on OSX waf is building 64-bit =
> lv2 binaries - these obviously won't work with Audacity.
>> I realise this question is probably more for the waf list but I was hop=
> ing that someone here could help me out :-)
>> What options do I need to set to get waf to build 32-bit binaries?
>> I've tried setting CFLAGS and CPPFLAGS to -m32 which works for autotool=
> s however it doesn't seem to work for waf.
> 
> Waf obeys CFLAGS (and CXXFLAGS for C++, note this is differen

Hello you want these flags pretended to your waf configure command:

CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./waf configure ......

This will give you a universal binary compatible with 32bit and 64 bit hosts. If you want 32bit only just remove the appropriate -arch flags. 


More information about the Devel mailing list