[
https://issues.apache.org/jira/browse/THRIFT-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183370#comment-13183370
]
Peace C commented on THRIFT-1476:
---------------------------------
The 10.7 system uses i686-apple-darwin11-llvm-gcc-4.2 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00).
I can't tell which the 10.5 system uses. Closest match I could find in
config.log is i686-apple-darwin9-gcc-4.0.1 (Apple Inc. build 5493). As far as
I can tell, both are using default XCode settings.
> Build universal library binaries on Mac OSX
> -------------------------------------------
>
> Key: THRIFT-1476
> URL: https://issues.apache.org/jira/browse/THRIFT-1476
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Affects Versions: 0.7, 0.8, 0.9
> Environment: Mac OS X
> Reporter: Peace C
> Assignee: Jake Farrell
> Priority: Minor
> Labels: build, mac, osx, thrift, universal, universal_binary
> Fix For: 0.9
>
>
> I would like to request a build option to create universal binaries on Mac
> OSX. The resulting library would support i386, x86_64 and ppc platforms.
> For reference, Jake F. posted a work-around to target different platforms -
> > The thrift build is not setup to create a universal binary currently. if
> > you would like to create a ticket for this we can take a look at making
> > this a global configure option. To set the arch you can pass
> > CPPFLAGS='-arch i386' to configure.
> [edit: additionally pass LDFLAGS and CXXFLAGS with the same architecture]
> > You should be able to use this for each arch you want to create and then
> > use lipo to combine them into a universal binary.
> >
> > -Jake
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira