Menu

#82 [MACOSX] Allow for universal binary support

v3.1.2
closed
Misc (15)
5
2006-02-28
2006-02-16
No

With Apple switching over to intel, they have provided
a way to build binaries that are launchable on both an
intel mac and a non-intel mac. This involves a 10.4
specific SDK that will allow the two architectures to
be built simultaneously. To allow the change, the
following few lines would need to be placed at the top
of a copy of Makefile.macosx:

UNIVERSAL_SDK_HOME=/Developer/SDKs/MacOSX10.4u.sdk

COMPILE = gcc -O3 -Wall -DUSE_NANOSLEEP -DMACOSX -arch
ppc -arch i386 -isysroot $(UNIVERSAL_SDK_HOME)
-I$(UNIVERSAL_SDK_HOME)/System/Library/Frameworks/JavaVM.framework/Headers

DEFS =
-I$(UNIVERSAL_SDK_HOME)/System/Library/Frameworks/JavaVM.framework/Headers

It would probably be better to have an additional
makefile as opposed to replacing the existing one, but
that would depend on the need for a non-intel only
based wrapper.

Thanks,
Michael

Discussion

  • Leif Mortenson

    Leif Mortenson - 2006-02-24
    • milestone: --> 428318
    • assigned_to: nobody --> mortenson
     
  • Leif Mortenson

    Leif Mortenson - 2006-02-24

    Logged In: YES
    user_id=228081

    Michael,
    Thanks. I need to get that SDK installed on my system, then
    I'll try to get it in for the 3.2.0 release. This new
    version contains code to make a multiplatform release of the
    Wrapper possible, so I'll need to get support for this
    worked in there as well.

    Cheers,
    Leif

     
  • Leif Mortenson

    Leif Mortenson - 2006-02-28
    • milestone: 428318 --> v3.1.2
     
  • Leif Mortenson

    Leif Mortenson - 2006-02-28
    • labels: --> Misc
    • status: open --> closed
     
  • Leif Mortenson

    Leif Mortenson - 2006-02-28

    Logged In: YES
    user_id=228081

    Michael,
    Thanks for the patch. It was fairly easy to get it to build
    once I got the tools installed. There will be a universal
    binary distribution with the 3.2.0 release.

    Cheers,
    Leif

     

Log in to post a comment.

MongoDB Logo MongoDB