Opened 17 years ago

Last modified 14 years ago

#552 closed Support Requests (fixed)

Building universal binary on MacOSX — at Version 2

Reported by: shaishasag Owned by: René Rivera
Milestone: Component: build
Version: None Severity: Showstopper
Keywords: Cc:

Description (last modified by René Rivera)

I'm using boost libraries on Windows (VC++) And MacOSX
(gcc).

Currently on MacOSX boost compiles for PPC processor.
As Apple is moving to Intel processors, I would like to
be able to compile boost, on the Mac for both PPC and
Intel.

Apple created the universal binary format, where you
compile and link the code twice, the only difference in
the compilation is a single option: -arch ppc or -arch
i386.

Later a tool called CreateUniversalBinary is called
upon the linked codes. CreateUniversalBinary merges the
two binaries into one. During runtime, the operating
system loads the code and chooses which part to run,
according to the local processor.

I tried looking into the jamfiles but was overwhelmed
by the complexity.

What would be the best method to achieve universal
binary on MacOSX?

Change History (2)

comment:1 by Daryle Walker, 17 years ago

Logged In: YES 
user_id=551024

There is a third option for a universal binary section.  The "ppc" option
is for 32-bit PowerPC chips.  There is another option for the 64-bit
version of that chip line.  I think the option's name is "ppc64", but I'm
not certain.  The G5 processors can use the "ppc64" setting, but only
for non-GUI programs.  A universal binary can have all three sections.
Maybe we should include all three in Mac OS X builds?

comment:2 by René Rivera, 15 years ago

Component: Building Boostbuild
Description: modified (diff)
Severity: Showstopper
Note: See TracTickets for help on using tickets.