Opened 14 years ago

Closed 12 years ago

#275 closed enhancement (fixed)

Create a somewhat universal binary of the library on my Mac

Reported by: Jari Häkkinen Owned by: Peter
Priority: major Milestone: yat 0.6
Component: build Version: trunk
Keywords: Cc:

Description

Doing file libyat.so should report

$ file libyat.so
libyat.so: Mach-O universal binary with 4 architectures
libyat.so (for architecture i386):     Mach-O dynamically linked shared library i386
libyat.so (for architecture ppc):      Mach-O dynamically linked shared library ppc
libyat.so (for architecture ppc64):    Mach-O 64-bit dynamically linked shared library ppc64
libyat.so (for architecture x86_64):   Mach-O 64-bit dynamically linked shared library x86_64

on my Mac. Well, at least the Intel CPU architectures should be included.

Change History (6)

comment:1 Changed 13 years ago by Jari Häkkinen

Milestone: 0.4later

comment:2 Changed 12 years ago by Peter

Summary: Create a somewhat univeral binary of the library on my MacCreate a somewhat universal binary of the library on my Mac

comment:3 Changed 12 years ago by Peter

On a OSX 10.4 I ran

$ ./configure --disable-dependency-tracking CXXFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
$ make

which results in

$ file yat/.libs/libyat.3.dylib 
yat/.libs/libyat.3.dylib: Mach-O universal binary with 2 architectures
yat/.libs/libyat.3.dylib (for architecture i386): Mach-O dynamically linked shared library i386
yat/.libs/libyat.3.dylib (for architecture ppc):  Mach-O dynamically linked shared library ppc

comment:4 Changed 12 years ago by Jari Häkkinen

Nice! And simple.

comment:5 Changed 12 years ago by Peter

Milestone: yat 0.x+yat 0.6
Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:6 Changed 12 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2080]) Added section in README on how to build universal library on Mac OS X and fixed a typo. closes #275

Note: See TracTickets for help on using tickets.