The proper extension for Mac JNI libraries is .jnilib. Hard-coded constants

have been factored to common locations.  Furthermore, the LD_LIBRARY_PATH
environment variable is DYLD_LIBRARY_PATH on Mac OS X.
This commit is contained in:
Eric Scharff
2007-09-20 10:13:41 -06:00
parent a688a6f61a
commit 36f1d3206e
4 changed files with 20 additions and 12 deletions

View File

@ -25,6 +25,12 @@
#error "Unsupported architecture"
#endif
#ifdef __APPLE__
#define SO_SUFFIX ".jnilib"
#else
#define SO_SUFFIX ".so"
#endif
#define NO_RETURN __attribute__((noreturn))
#define LIKELY(v) __builtin_expect((v) != 0, true)