| | 60 | |
|---|
| | 61 | == Bringing it all together as a universal library == |
|---|
| | 62 | |
|---|
| | 63 | We now have 4 individual libraries. To combine them into a single universal library use the ''lipo'' tool. |
|---|
| | 64 | |
|---|
| | 65 | {{{ |
|---|
| | 66 | $ lipo -create -output libfreetype.a libfreetype-i386.a libfreetype-x86_64 libfreetype-arm6.a libfreetype-arm7.a |
|---|
| | 67 | }}} |
|---|
| | 68 | |
|---|
| | 69 | And thats it. |
|---|
| | 70 | |
|---|
| | 71 | You can check which architectures are in a library with the -info argument. |
|---|
| | 72 | |
|---|
| | 73 | {{{ |
|---|
| | 74 | $ lipo -info libfreetype.a |
|---|
| | 75 | Architectures in the fat file: libfreetype.a are: armv6 armv7 i386 x86_64 |
|---|
| | 76 | }}} |