Ticket #7519: osx-packager-32-bit.patch

File osx-packager-32-bit.patch, 1.1 KB (added by mythtv@…, 16 years ago)

Force 32-bit compilation

  • osx-packager.pl

     
    570570        # Currently needed for Mac OS 10.6 builds:
    571571        #'--disable-mmx', '--enable-disable-mmx-for-debugging',
    572572        #'--disable-gpl', # plus comment out libfaad above
     573
     574        # Currently needed for Mac OS 10.6 builds on 64-bit CPUs (>=Core2):
     575        '--extra-cflags=-m32',
     576        '--extra-cxxflags=-m32',
     577        '--extra-ldflags=-m32',
    573578      ],
    574579);
    575580
     
    776781            push(@configure, './configure',
    777782                       '--prefix=$PREFIX',
    778783                       '--disable-static',
    779                        '--enable-shared');
     784                       '--enable-shared',
     785                       # Currently needed for Mac OS 10.6 builds on 64-bit CPUs (>=Core2):
     786                       'CFLAGS=-m32',
     787                       'CPPFLAGS=-m32',
     788                       'CXXFLAGS=-m32',
     789                       'LDFLAGS=-m32'
     790            );
    780791        }
    781792        if ($pkg->{'conf'})
    782793        {