Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling JNI Libs on 10.5 (for 10.4)




On Nov 9, 2007, at 8:58 AM, Stefan Arentz wrote:

On Nov 9, 2007 12:06 PM, Stefan Arentz <email@hidden> wrote:
What is the trick to compile a JNI lib on 10.5 that should also work on 10.4?

Right now I'm using:

g++
  -c
  -g

I got an anonymous tip :-)

simply doing an:

export MACOSX_DEPLOYMENT_TARGET=10.4

Before building made the difference. I was under the impression that
using the 10.4 SDK was enough, but it seems that the toolchain looks
at this environment variable.

Probably better than an environment variable is to explicitly pass the compiler the "-mmacosx-version-min=10.4" option.




Timothy Wall
http://abbot.sf.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Compiling JNI Libs on 10.5 (for 10.4) (From: "Stefan Arentz" <email@hidden>)
 >Re: Compiling JNI Libs on 10.5 (for 10.4) (From: "Stefan Arentz" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.